设置表单的样式
属性选择器在为不带有 class 或 id 的表单设置样式时特别有用:
input[type="text"]
{
width:150px;
display:block;
margin-bottom:10px;
background-color:yellow;
font-family: Verdana, Arial;
}
input[type="button"]
{
width:120px;
margin-left:35px;
display:block;
font-family: Verdana, Arial;
}
本文介绍了如何使用属性选择器为不带class或id的表单元素设置样式,包括文本输入框和按钮的具体样式设定。
3029

被折叠的 条评论
为什么被折叠?



