作者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
推 NelsonT:正確用法阿,名稱本來就可以用-字元 03/04 19:24
→ bcse:這個意思是說一次套用兩個 class,後面那串也是 class 名稱 03/05 00:02
推 chph:dis應該是disable的縮寫吧 03/05 00:03
→ maxi326:嗯嗯,原來是這樣,我再試試看 03/05 10:14
※ 編輯: maxi326 來自: 202.175.116.55 (03/05 10:17)