我做了一步一步的指示方案。最终会有很多选项,按钮,方式......但此刻我正在尝试将不活动的按钮涂成红色。但是CSS连接到“类”。你如何创建一个比用于文本的“类”更高优先级的“id”?Formating?CSS fomaring交替类和ID
<input type="button" name="coughyes" class="next action-button" id="red" value="Yes" />
/*buttons*/
#msform .action-button {
width: 100px;
background: #27AE60;
font-weight: bold;
color: white;
border: 0 none;
border-radius: 1px;
cursor: pointer;
padding: 10px 5px;
margin: 10px 5px;
}
#red {
background-color: red;
}
@Wanarka你还应该看看[CSS规则优先](https://developer.tizen.org/dev-guide/web/2.3.0/org.tizen.mobile.web.appprogramming/html/ guide/w3c_guide/dom_guide/html_priorities_css.htm)了解浏览器如何决定应用哪个规则 –
非常感谢! – Wanarka
@Wanarka不客气:) –