【发布时间】:2018-10-03 13:52:56
【问题描述】:
我在我的项目中使用 picnic.css 框架,并且输入 css 被 opera 用户代理样式覆盖。如何覆盖具有 !important 的这种歌剧风格。 我的输入 css:
Input, textarea, .select select {
line-height: 1.5;
margin: 0;
height: 2.1em;
padding: .3em .6em;
border: 1px solid #ccc;
background-color: #fff;
border-radius: .2em;
-webkit-transition: all 0.3s;
transition: all 0.3s;
width: 100%;
}
Opera 用户代理样式表如下所示:
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
background-color: rgb(250, 255, 189) !important;
background-image: none !important;
color: rgb(0, 0, 0) !important;
}
【问题讨论】: