0

这是按钮的 CSS....

.button:last-of-type,.button:visited, .button:hover, .button:active, .button:active {
    background: #7C8C99;

    color: #FFFFFF;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
    padding: 7px;
}

IE中的html...

 <input type="submit" name="ctl00$ContentPlaceHolder1$Button1" value="Submit" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ContentPlaceHolder1$Button1&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ctl00_ContentPlaceHolder1_Button1" class="button" />

有任何想法吗?

4

1 回答 1

0

last-of-typeIE<9 不支持 is CSS3 属性。

试试下面的 CSS:

.button{
    background: #7C8C99;

    color: #FFFFFF;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
    padding: 7px;
}
于 2013-10-08T16:08:49.017 回答