CSS背景控制—背景图
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" type="image/icon-x" href="images/logo.png">
<title>css背景图控制</title>
<style type="text/css">
/*background-image 属性描述了元素的背景图像,大部分情况我们直接简写 background
设置背景图的语法:
background-image:url(图片路劲)
background:url()*/
body{background: url(images/timg.jpg) no-repeat right top;/*background-repeat:no-repeat;*/
/*background-position:left top;*/
}
/*设置背景图片水平或垂直平铺:
background-repeat 水平方向(repeat-x)垂直方向(repeat-y)不平铺(no-repeat)*/
/*设置背景图片定位:
background-position*/
</style>
</head>
<body >
</body>
</html>