Css Can';不要固定衬垫

Css Can';不要固定衬垫,css,html,Css,Html,我在一个网站上工作。我希望大图像(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 wor

我在一个网站上工作。我希望大图像(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>


您需要使用CSS将正文的边距更改为0px。

样式表“layout.CSS”具有
填充:0 30用于id为的div
#wrap
。这就是你的形象所在的部门。填充会影响图像的左侧和右侧。设置为
padding left:30px
保留左侧填充,删除右侧填充。

这看起来是故意的吗?也许他只需要制作#站点标志img{宽度:100%}。此外,包装似乎缺少空白:全尺寸自动。
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)
<body id="home" class="home blog" style="margin: 0px;">