开发者

Use JQuery UI styles on other HTML elements

开发者 https://www.devze.com 2023-01-21 22:01 出处:网络
We use a JQuery UI theme and also have a <fieldset> with this CSS: fieldset {border:1px grey solid}.

We use a JQuery UI theme and also have a <fieldset> with this CSS: fieldset {border:1px grey solid}.

Instead of sp开发者_JAVA技巧ecifying grey for the border, how can we use a color/style that is provided with theme?


The simplest way is to add one of the predefined UI classes to your frameset. Ideally, you want to do this in a 'semantic' way as possible, rather than just 'borrowing' whatever class seems to match your styles best.

Looking at the jquery-ui.css file, I'd say you could go with ui-widget-content - that seems most appropriate.

0

精彩评论

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