【发布时间】:2011-08-22 18:04:54
【问题描述】:
我在 css 文件上创建了输入类型样式,通过它,我正在更改输入类型文本框的样式,并且我在整个网页中都使用了该样式。但是,现在我遇到了一个问题,我希望特定的输入类型不应该受到我创建的 css 文件的影响。简而言之,对于特定的输入类型,我想要 css 异常。所以......输入样式保持不变,不受css样式的影响。任何想法,如何实现这一点。 想法将不胜感激!!!
这是我的css文件的代码
input
{
color:#000000;
font-size:14px;
border:#666666 solid 2px;
height:24px;
margin-bottom:10px;
width:200px;
}
textarea
{
color:#000000;
font-size:14px;
border:#666666 solid 2px;
height:124px;
margin-bottom:10px;
width:200px;
}
我想要那个,它不应该应用在这个上
<input type="image" src="images/loginbutton.png" style="width:80px;height:40px" />
【问题讨论】:
标签: html css css-selectors