[請教] input CSS

看板Blog (部落格)作者 (ballII)時間17年前 (2009/01/13 17:01), 編輯推噓0(003)
留言3則, 3人參與, 最新討論串1/1
我在 blogger 樣板 html 裡加入 input 的 CSS 語法如下: input { border: 1px dotted #C0C0C0; background-color: #FFD5AA; font-size: 8 pt; } 很成功。可是若我把上面改成: input.text { border: 1px dotted #C0C0C0; background-color: #FFD5AA; font-size: 8 pt; } input.button { color:#FFD5AA; font: bold; } 卻沒有效果。請問是哪裡出問題呢? 我的網誌(有 input 的某篇): http://mkhere.blogspot.com/2008/11/high-school.html -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 68.84.29.63

01/13 17:15, , 1F
根本沒有class是text跟button東西阿
01/13 17:15, 1F

01/13 17:17, , 2F
"." 是代表class的名稱
01/13 17:17, 2F
啊我懂了!謝謝! ※ 編輯: ballII 來自: 68.84.29.63 (01/13 17:56)

01/13 18:16, , 3F
為什麼我的 font-size 沒有作用呢?
01/13 18:16, 3F
文章代碼(AID): #19R5Xv3o (Blog)
文章代碼(AID): #19R5Xv3o (Blog)