2014-01-30 204 views

回答

1

你忘了内标签(fiddle):

.ui-datepicker-today .ui-state-default { 
    font-weight: bold; 
} 

ui-state-default默认jQuery UI样式表有font-weight: normal。所以更好地通过类来覆盖内部标签。

-1
.ui-datepicker-today a{ 
    font-weight: bold !important; 
} 

上有td你的目标内部的锚font-weight: normal;。你需要重写与!important或通过使用更具体的标识

0
.demo input{ 
font-weight: bold !important; 
} 
+0

如果没有必要,您绝对不应该使用'!important'。为什么在这种情况下呢? –

相关问题