开发者

jQuery ui - define .ui-button-text-only .ui-button-text for radio button only

开发者 https://www.devze.com 2023-03-08 05:53 出处:网络
We can define the padding of button by changin开发者_JS百科g the css of .ui-button-text-only .ui-button-text, like this:

We can define the padding of button by changin开发者_JS百科g the css of .ui-button-text-only .ui-button-text, like this:

.ui-button-text-only .ui-button-text {
    padding: .3em .8em .3em;
}

But my challenge is, I would like to change ONLY the .ui-button-text-only .ui-button-text for radio button, not for other types of buttons.

Is there a way to do so?


You can use

.ui-button-text-only .ui-button-text[type="radio"] { /* CSS properties here */ }

More details @ http://www.w3.org/TR/CSS2/selector.html

Edit If you must have it working in IE6 as suggested below, you can use jQuery to apply the styles:

$('.ui-button-text-only .ui-button-text[type="radio"]').css('padding', '.3em .8em .3em');
0

精彩评论

暂无评论...
验证码 换一张
取 消