1,:checked被选中的复选框或单选按钮
2,:enable可用的表单元素(没有disabled)属性
3,:disabled不可用的表单元素(有disabled)属性
<style>
/* 选中的是勾选的复选框或者是单选按钮 */
input:checked{
width: 100px;
height: 100px;
}
/* 选中的是被禁用的input元素 */
input:disabled{
background-color: gray;
}
/* 选中的是可用的input元素 */
input:enabled{
background-color: green;
}
</style>
</head>
<body>
<input type="checkbox" name="" id="">
<input type="radio" name="gender">
<input type="radio" name="gender">
<input type="text">
<input type="text" disabled>
</body>