我有我的 wordpress 主题背景,
我有另一张图片,我想将它放在页面的中央,并从左到右水平重复它。
与这个网站非常相似http://www.tcs.com/homepage/Pages/default.aspx
非常感谢任何提示或说明。
谢谢
最佳答案
我会使用包装器来完成此任务。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {
background-image: url(image1.jpg);
}
#wrapper {
background-position: center middle;
width:100%;
height:100%;
margin: 0px;
padding: 0px;
background-image: url(image2.jpg);
background-repeat: x-repeat;
}
</style>
</head>
<body>
<div id="wrapper">
</div>
</body>
关于css多背景定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10485788/