为什么我似乎无法瞄准这个asp:按钮?

时间:2012-11-11 18:25:51

标签: css css-selectors

我目前正在设计一个网站的风格,并且已经发现了一些问题。

我正在尝试定位和设计这个:

<asp:Button ID="cmdUpdate" runat="server" Text="Update Details" CssClass="update_btn" />

使用此CSS:

div#account .update_btn {
width:108px;
height:27px;
background:url("/furniture/images/buttons/update.jpg") no-repeat 0 0;
clear:both;
float:left;
}

然而,当我检查萤火虫中的按钮时,它不会出现。 它目前由下面的代码设计,但上面的代码甚至没有出现。

div#account input {
border: 1px solid #ccc;
width:150px;
padding:5px 0 5px 10px;
margin: 0 0 10px 0;
float:right;
}

我不知道ASP所以我不能进行修改而且我不能使用input.button [type =“submit”],因为IE7不支持。

非常感谢任何帮助或指导。

2 个答案:

答案 0 :(得分:1)

在你的风格中加一个逗号它应该可以正常工作。

div#account, .update_btn {

答案 1 :(得分:0)

试试这个

div#account input.update_btn {
width:108px;
height:27px;
background:url("/furniture/images/buttons/update.jpg") no-repeat 0 0;
clear:both;
float:left;
}