作者maxi326 (不想再留白)
看板Web_Design
标题[问题] CSS一种看不懂的用法
时间Tue Mar 4 17:28:55 2008
<label class="iceOutLbl portlet-form-label"
id="_ManageEvent_WAR_ems42_:EventForm:j_id11">Filter</label>
但他的.css里只有
.iceOutTxt, .iceOutLbl {
font-family: Arial, Helvetica, sans-serif;
padding-left: 0px;
padding-right: 4px;
padding-top: 1px;
padding-bottom: 1px;
color: green;
}
.iceOutTxt-dis, .iceOutLbl-dis {
color: #ABABAB;
text-decoration: none;
border-bottom: 1px dotted #CCCCCC;
cursor: default;
}
有两个地方不明白
他的class="" 後面的portlet-form-label是标准的CSS用法吗?
那又是甚麽意思?
还有.iceOutLbl-dis後面的-dis又是标准CSS吗?
那又是甚麽意思呢?
谢谢大家
现在明白多一点
就是.iceOutTxt-dis整个是一个class的name
然後套用两个class就是class="classA classB"吧
谢谢大家的回覆
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 202.175.116.55
1F:推 NelsonT:正确用法阿,名称本来就可以用-字元 03/04 19:24
2F:→ bcse:这个意思是说一次套用两个 class,後面那串也是 class 名称 03/05 00:02
3F:推 chph:dis应该是disable的缩写吧 03/05 00:03
4F:→ maxi326:嗯嗯,原来是这样,我再试试看 03/05 10:14
※ 编辑: maxi326 来自: 202.175.116.55 (03/05 10:17)