取消元素 outline 样式

5年以前  |  阅读数:553 次  |  编程语言:HTML/CSS 
// 由于以下元素的部分属性没有继承父节点样式,所以声明这些元素的这些属性为父元素的属性

a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
button,
option,
textarea,
optgroup {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  color: inherit;
  outline: none;
}

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8