1、添加style标签:
<style type="text/css" >
</style>

2、添加选择器,例如:
<style type="text/css" >
body {
}
</style>

3、添加图片路径,例如:
<style type="text/css" >
body {
background-image:url("/images/background.jpg");
}
</style>

4、取消图片的重复排列:
<style type="text/css" >
body {
background-image:url("/images/background.jpg");
background-repeat:no-repeat ;
}
</style>

5、设置背景图片大小:
<style type="text/css" >
body {
background-image:url("/images/background.jpg");
background-repeat:no-repeat ;
background-size:100% 100%;
}
</style>

6、固定图片:
<style type="text/css" >
body {
background-image:url("/images/background.jpg");
background-repeat:no-repeat ;
background-size:100% 100%;
background-attachment: fixed;
}
</style>
