討論串[問題] CSS事先宣告的問題。
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓6(6推 0噓 3→)留言9則,0人參與, 最新作者Zingo (zingo)時間14年前 (2011/10/20 15:21), 編輯資訊
0
0
0
內容預覽:
謝謝,. 但是class只能使用一次,. 我要用div包起來的圖片中間會間隔文字,文字有自己的css div,. 所以還是要用ID,對吧?. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 61.62.220.74.

推噓0(0推 0噓 1→)留言1則,0人參與, 最新作者nochingyo (ARNO)時間14年前 (2011/10/20 14:23), 編輯資訊
0
0
0
內容預覽:
建議使用class而不是ID. 在<head></head>裡面. <style>. .centerimage img{. text-align:center;. margin:20px 0;. }. </style>. 在你要使用的地方. <div class="centerimage">. <i

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Zingo (zingo)時間14年前 (2011/10/20 14:09), 編輯資訊
0
0
0
內容預覽:
在一個html內,有5張圖要包進div裡做處理,每一張的語法都是:. <div align=center style="margin-top:10px; margin-bottom: 10px">. <img src="images/s1.jpg"></img></div>. 可不可以在Head宣告
(還有45個字)
首頁
上一頁
1
下一頁
尾頁