欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

属性选择器在为不带有 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;
}

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r52405.shtml