2011-12-16 168 views
0

我在現場工作。我想要寬大的圖像(寬度爲900px)來覆蓋整個容器。目前有一些填充物正好是我無法修復的。請幫助我。不能修復填充

<!DOCTYPE html> 
<html id="index-page" class="canvas canvastext no-touch draganddrop rgba borderradius boxshadow textshadow opacity fontface video audio localstorage mobile-768 mozilla wordpress-section w-900 lt-960 js gradient rgba opacity textshadow multiplebgs boxshadow borderimage borderradius no-cssreflections csstransforms csstransitions fontface not-ie domloaded" lang="en-US" dir="ltr"> 
<head> 
<body id="home" class="home blog"> 
<div id="wrap" style=""> 
<header role="banner"> 
<section id="site-logo"> 
<a href="http://ackmaster.com/wordpress"> 
<img width="1200px" alt="Ackmaster.com" src="http://ackmaster.com/wordpress/wp-content/uploads/2011/12/WebSiteMain2.jpg"> 
</a> 
</section> 
<section id="nav-wrap"> 
</header> 
<div id="content" role="main"> 
<footer style="min-height: 0; padding-top: 0;" role="contentinfo"> 
</div> 
<script> 
<div id="fancybox-tmp"></div> 
<div id="fancybox-loading"> 
<div id="fancybox-overlay"></div> 
<div id="fancybox-wrap"> 
</body> 
</html> 

使用Firebug相關CSS是:

body, button, input, select, textarea { 
    color: #8E8E8E; 
} 
dark.css (line 7) 
body { 
    background-image: url("bg-base.jpg"); 
} 
dark.css (line 6) 
body { 
    min-width: 480px; 
} 
mobile.css (line 6) 
body { 
    background: url("../images/bg-base.jpg") repeat scroll 0 0 transparent; 
} 
layout.css (line 7) 
body, button, input, select, textarea { 
    color: #3F3F3F; 
    font-family: "Helvetica Neue",Arial,sans-serif; 
} 
boilerplate.css (line 37) 
body { 
    font-size: 13px; 
    line-height: 1.6; 
    margin: 0; 
} 
boilerplate.css (line 35) 
Inherited fromhtml#index-page.canvas 
html { 
    font-size: 100%; 
} 
boilerplate.css (line 33) 

回答

1

樣式表 「layout.css中」 具有padding: 0 30;爲ID #wrap股利。這是你的形象是坐在專區的填充影響圖像的左側和右側。將它設置爲padding-left: 30px;保持左填充和刪除的權利。

+0

這看起來雖然故意的?也許他需要製作#site-logo img {width:100%}。此外,包裝似乎缺少邊距:全尺寸自動。 – 2011-12-16 17:45:59

0
<body id="home" class="home blog" style="margin: 0px;"> 

你需要改變身體的保證金使用CSS爲0px。

+0

它已經0像素。見我的編輯 – 2011-12-16 17:37:38