读书人

用Css中的Type选择器界别各Input控件

发布时间: 2012-07-29 15:26:13 作者: rapoo

用Css中的Type选择器区分各Input控件

如:

<style type="css/text">

?

input[type="text"]

{

width:200px;

}

input[type="password"]

{

width:160px;

}

input[type="radio"]

{

width:80px;

}

input[type="checkbox"]

{

width:300px;

}

input[type="button"]

{

width:90px;

}

?

</style>

注:IE6之前的浏览器版本不支持。

?

读书人网 >CSS

热点推荐