【问题标题】:Checkbox CSS glow color [duplicate]复选框 CSS 发光颜色 [重复]
【发布时间】:2017-11-24 20:16:43
【问题描述】:

有没有办法改变/强制复选框发光颜色聚焦?

$(function() {
  $('input[type!=hidden]:first').focus();
});
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="checkbox">

【问题讨论】:

    标签: css twitter-bootstrap checkbox twitter-bootstrap-3


    【解决方案1】:

    重新定义checkbox的css :focus属性:

      
    input[type="checkbox"]:focus {
      outline-color: green;
    }
    &lt;input type="checkbox"&gt;

    【讨论】:

      猜你喜欢
      • 2013-07-19
      • 1970-01-01
      • 2018-07-20
      • 2017-11-01
      • 1970-01-01
      • 2013-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多