实例
为所有 type=“text” (button 等type属性同样适用)的被禁用的 input 元素设置背景色:
input[type="text"]:disabled
{
background-color: #dddddd;
}
为所有已禁用的 input 元素设置背景色:
input:disabled
{
background:#dddddd;
}
enabled 也一样设置
实例
为所有 type=“text” (button 等type属性同样适用)的被禁用的 input 元素设置背景色:
input[type="text"]:disabled
{
background-color: #dddddd;
}
为所有已禁用的 input 元素设置背景色:
input:disabled
{
background:#dddddd;
}
enabled 也一样设置