[問題] 首頁如何置中?

看板Web_Design作者 (熱帶水果)時間16年前 (2010/04/16 00:35), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串1/1
我把首頁分成上下(用框架語法frameset) 請問要如何把整體置中? 像這個網頁http://chanchan.idv.st/ 置中後,可以看到最底的背景色是黃橘色 請位置中語法該怎麼寫? 我有試過<center>,但是行不通@@ 請達人教教我,謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 120.105.154.121

04/16 02:57, , 1F
<body><div style="margin:0px auto;">置中</div></body>
04/16 02:57, 1F

04/16 03:01, , 2F
這個網址不是使用frameset吧? ..|||
04/16 03:01, 2F
請問是放在分割視窗的HTML檔嗎?但是我裡面沒有用<body>耶 這是我的原始檔 <html> <head> </head> <frameset rows="180,*" border="0" frameborder="0" > <frame src="http://dl.dropbox.com/u/5524796/a.html" name="1" scrolling="no" noresize>  <frameset cols="170,*" border="0" frameborder="0">   <frame src="http://dl.dropbox.com/u/5524796/b.html" name="2" scrolling="no" noresize>   <frame src="c.htm" name="3" scrolling="no" noresize> </frameset> </frameset> </html> ※ 編輯: fruitcats 來自: 203.64.181.128 (04/16 14:29)

04/16 17:20, , 3F
每個框架都有各自的<Body>,再照一樓的作法弄就好了
04/16 17:20, 3F

04/16 17:30, , 4F
其實我的意思是chanchan.idv.st有使用frameset的必要嗎? XD
04/16 17:30, 4F
文章代碼(AID): #1Bnq1AtW (Web_Design)