1
由於某些原因,懸停屬性不起作用。當我將鼠標放在按鈕上時,它不會更改爲CSS中指定的顏色。JQuery主題構建器CSS問題
這裏是我的相關CSS:
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
border: 1px solid #dadada;
background: #d7dfff url(images/ui-bg_highlight-soft_75_d7dfff_1x100.png) 50% 50% repeat-x;
font-weight: normal;
color: #555555;
}
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited {
color: #555555;
text-decoration: none;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
border: 1px solid #dadada;
background: #b3c2ff url(images/ui-bg_highlight-soft_75_b3c2ff_1x100.png) 50% 50% repeat-x;
font-weight: normal;
color: #212121;
}
.ui-state-hover a, .ui-state-hover a:hover {
color: #212121;
text-decoration: none;
}
下面是相關的HTML:
<button class="ui-state-default ui-corner-all ui-state-hover" type="submit" id="barlogin"><p>Login</p></button>
ahhh好的,謝謝! – 2010-10-17 01:44:18