【发布时间】:2016-07-13 10:50:40
【问题描述】:
需要更改哪些属性才能更改所选文本退出时的输入字段颜色?我想去掉高亮的深灰色框
(见下图)
<div id="ember1102" class="ember-view">
<i class="fa fa-pencil fa-lg editable-row-input-right" style="display:inline-block; " data-ember-action="1103"></i>
<input id="alternate-name-1-265140" type="text" class="pure-input-1 pure-input-inline editable-row-input-left ember-view ember-text-field" disabled="">
</div>
css 太庞大了,无法在此处发布所有内容,但这里是最高级别:
.pure-input-1.pure-input-inline.editable-row-input-left {
display:inline-block;
min-width: 0px;
cursor: text;
&:disabled{
color:inherit;
background-color: inherit;
padding-right: 20px;
&:hover{
background: inherit !important;
}
&:focus{
}
}
&:enabled{
color:inherit;
background-color: white;
&:focus{
background: white !important;
border: 2px solid $ecm-dark-blue !important;
}
&:hover{
background: white !important;
}
}
}
更改了 chrome 编辑器中的所有颜色属性,但我无法更改背景颜色。
我也试过 background 和 -webkit highlight
【问题讨论】:
-
你的 CSS 中 & 代表什么?
-
对不起它的粗鲁。我需要更改标签
-
@ShadiShaaban - 使用 sass 或更少。它将永远改变你编写 CSS 的方式。
-
@evolutionxbox 感谢您的建议,我会研究一下。
标签: javascript html css sass