當我使我的網站與div標籤不是表格,這是大多數人做的,然後我定位它們的邊界屬性,我已經試過它的位置:絕對和相對屬性,但是當我重新調整我的瀏覽器的一切變化的地方,像這樣 - 在網站上溢出
我希望它留在原地它是像大多數網站使用div標籤,當你重新調整大小他們不動,我想知道什麼把戲,他們用...
,並順便說一下我的網站仍在進行中笑...謝謝你
我的代碼
<html>
<head>
<title></title>
<link rel = "stylesheet" type = "text/css" href = "verdanacssstylesheet.css" />
<script type="text/javascript" src="external files/jquery.js"></script>
<!-----------START OF SCRIPT------------------------>
<script type = "text/javascript" >
</script>
<!------------END OF SCRIPT AND START OF STYLE-->
<style type = "text/css" >
div {border:2px solid black;}
</style>
<!---------------END OF STYLE AND HEAD AND START OF BODY---------->
</head>
<body style="margin:0px;padding:0px;" text="black" >
<div style="" >
<div id = "header" style="100%;height:150px;" >
<div id = "headerinside" style="margin-left:auto;margin-right:auto;width:1030px;height:150px;" ><div></div></div>
</div>
<div style="width:1030px;height:;margin-left:auto;margin-right:auto" >
<div style = "border:2px solid red;height:30px;" id = "navigationbar" >
<ul style = "list-style:none;" id = "navbar" >
<li style = "float:left;padding-left:45px;line-height:3px;" >hello</li>
<li style = "float:left;padding-left:120px;line-height:3px;" >hello</li>
<li style = "float:left;padding-left:120px;line-height:3px;" >hello</li>
<li style = "float:left;padding-left:120px;line-height:3px;" >hello</li>
<li style = "float:left;padding-left:120px;line-height:3px;" >hello</li>
<li style = "float:left;padding-left:120px;line-height:3px;" >hello</li>
</ul>
</div>
<div id = "main" style="">
<div style="width:1026px;text-align:center;" ><p>hello</p></div>
</div>
<div id = "footer" style="100%;height:150px;" >
<div id = "footerinside" style="margin-left:auto;margin-right:auto;width:1030px;;height:150px;" ><div></div></div>
</div>
</div>
</body>
<!---------------EDN OF BODY------------------->
</html>
顯示您當前的代碼將有助於... – kei
好吧,我忘了這麼做,感謝您告訴我 – fgdf
您仍然可以編輯您的帖子並添加代碼。 – Bazzz