Dreamweaver CS6 網站頁框置中
這是我的頁框:http://i.imgur.com/cjjN5OX.gif
我的頁框分三個,top、left、main
其中top和left是固定不變的,只有main會變動。
這是我index.html的程式:http://i.imgur.com/0TmS4wE.gif
請問,要怎麼設定才能把整個網站都置中呢?
使用不同電腦的解析度或縮放,都能夠置中,就像這樣:http://i.imgur.com/3m8TwZh.gif
我查了好多,看了好多,也試了很多次,還是沒辦法。
比例縮放後:http://imgur.com/gDxhtfY
謝謝
1 個解答
評分
- AlstonLv 66 年前最佳解答
我無法COPY你語法,所以無法直接測試。
方法:1
body頭標籤加入style="text-align:center"
<body style="text-align:center">
方法:2
下方div標籤包住整個頁框
<div style="position:relative;width: 1000px;height: 100%;margin-right: auto;margin-left: auto;">
<framset>.............</framset>
</div> ArtBox網站系統
參考資料: ArtBox
還有問題?馬上發問,尋求解答。