jQuery ui-仅为单选按钮定义.ui-button-text .ui-button-text

| 我们可以通过更改
.ui-button-text-only .ui-button-text
的css来定义按钮的填充,如下所示:
.ui-button-text-only .ui-button-text {
    padding: .3em .8em .3em;
}
但是我的挑战是,我只想更改单选按钮的
.ui-button-text-only .ui-button-text
,而不更改其他类型的按钮。 有办法吗?     
已邀请:
您可以使用
.ui-button-text-only .ui-button-text[type=\"radio\"] { /* CSS properties here */ }
更多详细信息@ http://www.w3.org/TR/CSS2/selector.html 编辑 如果必须按照以下建议在IE6中使用它,则可以使用jQuery来应用样式:
$(\'.ui-button-text-only .ui-button-text[type=\"radio\"]\').css(\'padding\', \'.3em .8em .3em\');
    

要回复问题请先登录注册