【发布时间】:2016-06-10 14:58:54
【问题描述】:
下面的 html sn-p 中的外部 div 应该应用了 {cursor: pointer} 的 css,但它被 user agent stylesheet 覆盖,正如我在 chrome 开发人员中查找计算样式时看到的那样工具。
<div class="select clickable">
<span class="arr"></span>
<select data-bind="options: _regions,
optionsText: 'name',
optionsValue: 'geonameId',
value: selectedCity,
optionsCaption: 'REGION'
"><option value="">REGION</option>
</select>
</div>
这是我的相关css:
.clickable {
cursor: pointer !important;
}
我想我需要为 css 规则使用更好的选择器。什么是覆盖用户代理样式表的选择器?
【问题讨论】:
标签: css