我有一个使用以下代码应用的背景图像:
#paint-bg{
background: url(../_img/contacto/paint.png) no-repeat center center fixed;
width: 970px;
height: 670px;
display:block;
}
没什么特别的。和我的html一样:
<?php include('header.php'); ?>
<body class="bg">
<?php include('nav.php'); ?>
<div id="wrapper">
<div id="paint-bg">
<section class="contacto">
<h2>Contacto</h2>
<p class="p1">c/ Manuel Pombo Angulo nº 18 ,planta 1ª 16</p>
<p class="p2">28055 Madrid</p>
<p class="p3">+34 629 413 049</p>
<p class="p4"><a href="mailto:info@rosasusaeta.com">info@rosasusaeta.com</a></p>
</section>
</div>
</div>
<?php include('footer.php'); ?>
没什么特别的。但是当有人访问这个网页时,他们会看到图像从左侧切成两半。我玩过不同的参数,但由于它很简单,我不知道出了什么问题......请让我知道如何遵循......
这里有网站的链接,您可以自己查看,链接到网站。