html – 如何删除bootstrap中的轮廓4

前端之家收集整理的这篇文章主要介绍了html – 如何删除bootstrap中的轮廓4前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我想在bootstrap 4中删除文本框大纲,但它不起作用.请让我如何删除此行.

enter image description here

CSS

#content #main-content input[type=text]{
   border: 0;
   border: 1px solid #ccc;
   height: 40px;
   padding-left: 10px;
   outline: 0;
 }

HTML

最佳答案
您正在使用的主题设置Box-shadow以在焦点上插入0 -2px 0#2196F3.

你需要覆盖它,但不能覆盖它,因为那只会删除它.您可能希望它保持相同的值,就像它没有集中时一样.简而言之,你需要这个:

textarea:focus,textarea.form-control:focus,input.form-control:focus,input[type=text]:focus,input[type=password]:focus,input[type=email]:focus,input[type=number]:focus,[type=text].form-control:focus,[type=password].form-control:focus,[type=email].form-control:focus,[type=tel].form-control:focus,[contenteditable].form-control:focus {
  Box-shadow: inset 0 -1px 0 #ddd;
}

另请注意,您需要在Bootstrap CSS和正在加载的主题之后加载此CSS.

@H_403_36@ 原文链接:https://www.f2er.com/html/426627.html

猜你在找的HTML相关文章