CSS3 background-size Property
来源:互联网 发布:deepin linux 15.4.1 编辑:程序博客网 时间:2024/06/04 19:21
Example
Specify the size of a background image:
div
{
background:url(img_flwr.gif);
background-size:80px 60px;
background-repeat:no-repeat;
}
{
background:url(img_flwr.gif);
background-size:80px 60px;
background-repeat:no-repeat;
}
Try it yourself »
More examples at the bottom of this page.
Browser Support
The background-size property is supported in IE9+, Firefox 4+,Opera, Chrome, and Safari 5+.
Definition and Usage
The background-size property specifies the size of the backgroundimages.
Syntax
background-size: length|percentage|cover|contain;
Try it Yourself - Examples
Stretch thebackground-image
Stretch the background image to completely cover the contentarea.
Stretch the background-image tofour copies horizontally
Stretch the background image so that exactly four copies fithorizontally.
Related Pages
CSS3 tutorial:
- CSS3 background-size Property
- CSS3 box-shadow Property
- CSS3 text-shadow Property
- CSS3 word-wrap Property
- CSS3 background-size属性
- css3 background-size 用法
- css3 background-size
- CSS3 Background-size
- CSS3-background-size
- CSS3 Background-size 详解
- css3中的background-size
- css3 背景图片 background-size
- 【CSS3】background-size
- CSS3 背景 background-size
- CSS3 background-size 属性
- CSS3:background-size属性
- CSS3 Background-size
- CSS3 Background-size 详解
- php操作memcache的使用总结(2)
- ThinkPHP3.1快速入门(12)自动验…
- 网页设计中常用的19个Web安全字体
- CSS3 box-shadow Property
- u-boot1.3.4
- CSS3 background-size Property
- 链表和队列复习
- CSS3 text-shadow Property
- CSS3 word-wrap Property
- OpenCV IplImage和GDI+ Bitmap的相互转换
- CSS3 2D Transforms
- CSS3 3D Transforms
- CSS3 Animations
- ThinkPHP3.1快速入门(13)自动完…