我是Stackoverflow的新手,我需要帮助解决这些问题。
所以问题是:我希望这个虚线图像高度为容器的100%。
HTML
<div id="test1">
</div>
<aside>
<?php
if (logged_in() === true) {
include 'includes/widgets/loggedin.php';
} else {
include 'includes/widgets/login.php';
}
include 'includes/widgets/user_count.php';
include 'includes/widgets/sponsors.php';
include 'includes/widgets/partners.php';
?>
</aside>
CSS
aside {
width:260px;
float:right;
background-image:url(../images/dashed.png);
background-repeat: repeat-y;
padding-left:15px;
}
#container, footer {
background:#fff;
width:1100px;
margin:0 auto;
padding:20px;
}
#test1 {
height:1000px;
}
任何人都可以帮助我吗?
答案 0 :(得分:0)
试试这个:
aside {
background: url(images/bg.jpg) repeat-y center center fixed;
padding-left:15px;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}