<style>
div{
width: 200px;
height: 200px;
/background-color:red;/
/background-image: url("images/game03.jpg");/
/*
背景图片
默认x y轴重复
/
/background-repeat: no-repeat;/
/
背景是否需要重复
no-repeat 不重复
repeat-x x轴重复
repeat-y y轴重复
*/
/*
背景位置
x轴 y轴
英文 left right top bottom center
像素
*/
/*background-position: left,top;*/
/*
复合样式
*/
background:url("images/game02.jpg") no-repeat red left bottom;
}
</style>
网友评论