我试图在我的网站上有 2 个单独的背景,每侧一个,根据屏幕大小进行调整
就像在ownedcore.com上一样,其中边用中间包装进行调整
HTML:
<div id="bleft"></div>
<div id="wrapper">a</div>
<div id="bright"></div>
CSS:
@charset "utf-8";
header, section, footer, aside, bside, article, figure {display: block;}
* {margin: 0; padding: 0;}
#wrapper {
width: 1400px;
margin: 0 auto;
text-align: left;
position: absolute;
}
#bleft {
width: 700px;
height: 700px;
float: left;
background-image: url(images/pageBGLeft.jpg);
clear: left;
}
#bright {
width: 700px;
height: 700px;
float: right;
background-image: url(images/pageBGRight.jpg);
clear: right;
}
不强制正确的背景,但显示一个换行符