2012-12-28 01:53:27 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Background attribute tests</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
<style>
|
|
|
|
html {
|
|
|
|
background-color: red;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
background-color: lime;
|
|
|
|
}
|
|
|
|
.small div{
|
|
|
|
width:100px;
|
|
|
|
height:100px;
|
|
|
|
float:left;
|
|
|
|
margin:10px;
|
|
|
|
border:1px solid #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.medium div{
|
|
|
|
width:200px;
|
|
|
|
height:200px;
|
|
|
|
float:left;
|
|
|
|
margin:10px;
|
|
|
|
border:1px solid #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.small, .medium{
|
|
|
|
clear:both;
|
|
|
|
}
|
|
|
|
|
|
|
|
div{
|
|
|
|
display:block;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="medium">
|
2012-12-28 20:06:44 +04:00
|
|
|
<div style='background:url("../../assets/image.jpg") center center;'></div>
|
|
|
|
<div style="background:url('../../assets/image.jpg') repeat-x center center;"></div>
|
2012-12-28 01:53:27 +04:00
|
|
|
<div style="background:url(../../assets/image.jpg) repeat-y center center;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) no-repeat center center;"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="small">
|
|
|
|
<div style="background:url(../../assets/image.jpg) center center;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) repeat-x center center;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) repeat-y center center;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) no-repeat center center;"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="medium">
|
|
|
|
<div style="background:url(../../assets/image.jpg) -15% 25px;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) repeat-x 50px 50px;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) repeat-y 50px 50px;"></div>
|
|
|
|
<div style="background:url(../../assets/image.jpg) no-repeat 50px 50px;"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|