css教程:CSS背景background属性的应用_CSS教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
The CSS background properties define the background effects of an element.
CSS的background属性可为元素定义背景效果。
设置背景颜色 Set the background color
This example demonstrates how to set the background color for an element.
实例:
设置背景图片 Set an image as the background
This example demonstrates how to set an image as the background
实例:
重复背景图片 How to repeat a background image
This example demonstrates how to repeat a background image.
实例:
背景图片水平重复 How to repeat a background image only horizontally
This example demonstrates how to repeat a background image only horizontally.
实例:
背景图片垂直重复 How to repeat a background image only vertically
This example demonstrates how to repeat a background image only vertically.
实例:
图片放在页面上 How to place the background image
This example demonstrates how to place the image on the page.
实例:
背景图片固定在背景上,不跟随页面一起移动 How to set a fixed background image
This example demonstrates how to set a fixed background image. The image will not scroll with the rest of the page.
实例:
一句声明就能设置所有与background属性有关的值 All the background properties in one declaration
This example demonstrates how to use the shorthand property for setting all of the background properties in one declaration.
实例:
CSS的background属性可为元素定义背景效果。
设置背景颜色 Set the background color
This example demonstrates how to set the background color for an element.
实例:
代码调试框 [www.mb5u.com]
设置背景图片 Set an image as the background
This example demonstrates how to set an image as the background
实例:
代码调试框 [www.mb5u.com]
重复背景图片 How to repeat a background image
This example demonstrates how to repeat a background image.
实例:
代码调试框 [www.mb5u.com]
背景图片水平重复 How to repeat a background image only horizontally
This example demonstrates how to repeat a background image only horizontally.
实例:
代码调试框 [www.mb5u.com]
背景图片垂直重复 How to repeat a background image only vertically
This example demonstrates how to repeat a background image only vertically.
实例:
代码调试框 [www.mb5u.com]
图片放在页面上 How to place the background image
This example demonstrates how to place the image on the page.
实例:
代码调试框 [www.mb5u.com]
背景图片固定在背景上,不跟随页面一起移动 How to set a fixed background image
This example demonstrates how to set a fixed background image. The image will not scroll with the rest of the page.
实例:
代码调试框 [www.mb5u.com]
一句声明就能设置所有与background属性有关的值 All the background properties in one declaration
This example demonstrates how to use the shorthand property for setting all of the background properties in one declaration.
实例:
代码调试框 [www.mb5u.com]
相关CSS教程:
- 相关链接:
- 教程说明:
CSS教程-css教程:CSS背景background属性的应用。