本文主要包含css3背景图片自适应,css3背景图片,css3设置背景图片,css3背景图片大小,css3背景图片透明等相关知识,佚名  希望在学习及工作中可以帮助到您
  背景裁剪
- background-clip:border-box|padding-box|content-box|text
 
用于指定background是否包含content之外的border,padding。默认值为border-box,即background从包含border在内的地方开始渲染,IE的默认表现也等同于border-box
背景从border(即包括border在内)开始绘制(渲染)
- #background-clip-border{
 - -moz-background-clip:border-box; /* For Firefox */
 - -webkit-background-clip:border-box; /* For Chrome, Safari */
 - -o-background-clip:border-box; /* For Opera */
 - -ms-background-clip:border-box; /* For IE */
 - background-clip:border-box; /* For Future */
 - }
 
背景从padding(即包括padding在内)开始绘制:
- #background-clip-padding{
 - -moz-background-clip:padding-box; /* For Firefox */
 - -webkit-background-clip:padding-box; /* For Chrome, Safari */
 - -o-background-clip:padding-box; /* For Opera */
 - -ms-background-clip:padding-box; /* For IE */
 - background-clip:padding-box; /* For Future */
 - }
 
背景从content(即内容部分)开始绘制:
</div>- #background-clip-content{
 - -moz-background-clip:content-box; /* For Firefox */
 - -webkit-background-clip:content-box; /* For Chrome, Safari */
 - -o-background-clip:content-box; /* For Opera */
 - -ms-background-clip:content-box; /* For IE */
 - background-clip:content-box; /* For Future */
 - }
 
将背景裁剪作为文本的填充色:

