我想将CSS文件应用于页面中的具体DIV。这是页面结构:将CSS样式应用于DIV中的所有元素
<link rel="stylesheet" href="style.css" />
...
<body>
<div id="pagina-page" data-role="page">
...
<div id="applyCSS">
(all the elements here must follow a concrete CSS rules)
</div>
...
</body>
我尝试应用CSS文件的编辑像这样(CSS文件是如此之大)规则:
#applyCSS * { (For all the elements inside "applyCSS" DIV:)
.ui-bar-a {
...
...
}
.ui-bar-a .ui-link-inherit {
...
}
...
}
但是这种解决方案不起作用。那么,我该怎么做?
可能的重复:http://stackoverflow.com/questions/12110708/limit-stylesheet-to-one-tag-and-descendents/12553605#12553605 – Pavlo 2013-04-09 12:18:16