MozTW 討論區
https://forum.moztw.org/

懂得CSS大大請進一下-CSS定位問題-以解決
https://forum.moztw.org/viewtopic.php?f=13&t=18013
1 頁 (共 1 頁)

發表人:  lkk6015 [ 2007-03-17, 21:25 ]
文章主題 :  懂得CSS大大請進一下-CSS定位問題-以解決

用IE看正常
但用Fx看不正常且版面全部都亂掉了
我的CSS哪邊有問題
麻煩幫忙改一下+解說 謝謝
下面是我寫的網頁原始碼
代碼:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>網頁模板</title>
<style type=text/css>
<!--
body{font-size:16px;/*調整字體大小*/margin-left:20px;/*左邊界值*/margin-right:20px; /*右邊界值*/background :色碼; /*背景底色*/
background-image : url('背景圖片網址'); /*背景圖片網址*/}
#0-1 {position: absolute; top: 10px; left: 80px;} /*top上方距離*/ /*left左方距離*/
#0-2 {position: absolute; top: 10px; left: 282px;} /*top上方距離*/ /*left左方距離*/
#1-1 {position: absolute; top: 75px; left: 80px;} /*top上方距離*/ /*left左方距離*/
#1-2 {position: absolute; top: 75px; left: 282px;} /*top上方距離*/ /*left左方距離*/
#2-1 {position: absolute; top: 525px; left: 468px; font-size :12px;color:#C0C0C0;text-align:center;} /*top上方距離*/ /*left左方距離*/

-->
</style>
</head>

<body>
<div style="width: 961; height: 560">
 <div id="0-1" style="width: 204; height: 65">
0-1
</div>

<div id="0-2" style="width: 648; height: 65">
0-2
</div>

<div id="1-1">
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="203" height="446" id="AutoNumber1">
    <tr>
      <td width="203" height="446">1-1 </td>
    </tr>
  </table>
</div>

<div id="1-2">
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="648" height="446" id="AutoNumber2">
    <tr>
      <td width="648" height="446">1-2 </td>
    </tr>
  </table>
</div>

<div id="2-1">
版權所有
</div>
</div>
</body>

</html>

發表人:  LGZenith [ 2007-03-17, 21:32 ]
文章主題 : 

其實不是CSS的問題...
一般變數命名的時候不能是數字開頭
修改了之後firefox就可以正常顯示版型了

IE居然可以容錯到這種程度.....

發表人:  lkk6015 [ 2007-03-17, 21:47 ]
文章主題 : 

謝謝您的提醒

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/