意思是说给modules这个类定义css样式
.modules
.hd
是有嵌套是的定义,给你举个例子
<div
class="modules">
<div
class="hd"></div>
</div>
上面class="hd"的层是嵌套在class="modules"的层里面的
所以给它定义风格时就可以这样:
.modules
.hd
{
height:30px
padding-left:5px
font-size:14px}
希望能帮到你~~~~~~
一、可以重载css定义,比如主页index.htm引用了body.css式样<linkhref="js/body.css"
rel="stylesheet"
type="text/css">
,而js/body.css里面有如下定义:
body,td,th
{
font-family:
Arial,
Helvetica,
sans-serif
font-size:
7.5pt
color:
#999999
line-height:
11pt
}
那么你可以在index.htm中重新定义th,只要在<link>语句之后就有效,例如:
<link
href="js/body.css"
rel="stylesheet"
type="text/css">
<style
type=text/css>
th
{
font-size:
13pt
color:
#123456
line-height:
18pt
}
</style>
二、如果只是部分th表格需要使用特殊格式,武林是否使用了上面的方式重载,都可以单独为部分表格指定格式,例如:
<table><tr><th
style='font-size:13pt'>
应该是这样:id代表#outer的属性,意思是对包含id属性的#outer应用样式,比如<a href="#" id="outer"></a>那么#outer[href]就代表包含href属性的a标签,不过很少这么用因为#符合是用于id的,id有唯一性,一般.outer[id]和targetname[id]这样使用