2011-12-16 174 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