2010-11-08 37 views
1

我無法打開頁腳。出於某種原因,它給出了一個100%寬度的滾動條。 我試圖執行粘滯頁腳技術,probb出事了:dCSS:大水平滾動條的小頁腳問題

這是CSS代碼控制頁腳:

.mf{ 
background: #eaeade; 
width: 100%; 
padding-left:100px; 
padding-top:51px; 
padding-bottom:11px; 
position: absolute; 
margin: 0 auto; 
bottom: 0; 
} 

這是HTML:

<div style="background-color:#EAEADE;text-align:center;overflow:hidden;"> 
        <div class='mf'> 
       <div class='home-links-footer' style="color:#8E8E80;"> 
       <a href="index.php">Home</a> | <a href="index.php?option=com_content&view=article&id=14&Itemid=5">Beveel ons aan!</a> | <a href="index.php?option=com_content&view=article&id=4&Itemid=2">Onze Services</a> | <a href="index.php?option=com_content&view=article&id=5&Itemid=3">Laptop Reparatie</a> | <a href="index.php?option=com_content&view=article&id=6&Itemid=4">Onze Tarieven</a> | <a href="index.php?option=com_content&view=article&id=14&Itemid=5">Contact Gegevens</a> | <a href="#">Sitemap</a> 
       </div> 
       <div style="color:#8E8E80;border-bottom:1px dotted;padding-bottom:3px;width:700px;margin:auto;"> 
       Friese Computerservice - 8932 JZ Leeuwarden - <a href="mailto:[email protected]" style="text-decoration:none;"><span style="color:#F57F20;font-weight:bold;">[email protected]</span></a> - Tel. 058-8446628 Mob. 06-29594595 
      </div> 
     </div> 
    </div> 

回答

1

你必須明白,CSS框模型認爲「寬度」是指框的寬度,而不是框的整體大小。你已經給了你的左邊和右邊的框填充,所以填充將是以外的的100%寬度。

就我個人而言,我發現一個非常離奇的機制,但你去。

什麼工作(但不會在舊版本的IE)是沒有提到「寬度」和剛剛成立的「左」和「右」 0

+0

是我不好,我不得不改變位置相對 – Chris 2010-11-08 17:40:35

+0

忘記回答你的答案的第一行,我不知道這一點。謝謝! – Chris 2010-11-08 23:07:01