html - 输入 :focus outline, 但没有模糊效果

标签 html css border

我想在我的输入字段聚焦时有一个 1px 的边框,但没有模糊效果。

我用 outline-color.. 添加了边框,但是如何删除模糊效果?

边框半径:0px;和 box-shaddow:0px; 不能解决问题。

谢谢

最佳答案

好的,马蒂亚斯 M,

试试这个;

<!DOCTYPE html>
<html>
<body>
<input type="text" class="a">
<style>
.a:focus
{ 
border:1px solid blue;
}
</style>
</body>
</html>

关于html - 输入 :focus outline, 但没有模糊效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25442876/

相关文章:

javascript - jQuery.find() 在 html 变量中不起作用

javascript - 使用 smoothdivscroll 修复多行负载

css - 带有渐变背景的 IE8 中表格标题边框消失

javascript - 使用 VBA 遍历 DIV 元素

java - 如何用Java制作3D圆角JLabel?

html - 添加文本内容后div悬停效果改变

python - 类型错误 : expected string or buffer while using regular expression in python

javascript - 配置 TinyMCE 4 以允许内联元素或 anchor 标记 (a) 成为顶级元素

html - 移动 CSS 页面宽度

css - CSS 中的媒体片段 URI 替代方案?