(background-clip裁剪,background-position位置,background-origin定位,background-repeat是否重复)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>表格</title>
<style type="text/css">
.class1{
width: 400px;
height: 550px;
border-style: groove;
border-color: rgba(235,198,118,0.6);
border-width: 10px;
padding: 30px; background-image: url(../image/img2.jpg),url(../image/img3.jpg),url(../image/img4.jpg);
background-repeat: no-repeat,no-repeat,repeat;/*背景图片不重复*/
background-position: top left,bottom right,top center;/*右下背景图片的位置*/
background-origin: border-box,padding-box,content-box;/*左上背景图片的定位*/
background-clip: border-box,padding-box,content-box; /*中间背景图片裁剪*/ }
p{
font-size: 20px;
text-indent: 2em;/*首行缩进2个字符*/
line-height: 28px;
padding-top: 12px;
}
</style>
</head>
<body>
<div class="class1">
<p>大家好。这是一个css3添加背景图片的小案例。需要注意的是:1.在添加多个背景的时候,底层的背景图要放在最后面。2,多个背景之间的属性用逗号分割。</p>
</div>
</body>
</html>

最新文章

  1. RestTemplate发送请求并携带header信息
  2. 20160929001 Guid生成
  3. Autofac - 组件
  4. linux source与 . 命令
  5. Large-Scale Named Entity Disambiguation Based on Wikipedia Data
  6. tomcat的几种部署方法
  7. AppCan中两种获取信息的方法
  8. Androidannotation使用之@Rest与server交互的JSON数据转换(二)
  9. php图片上面写文字,输出图片
  10. POJ3683 Falsita
  11. Go - 第一个 go 程序 -- helloworld
  12. 设计模式之迭代器模式——Java语言描述
  13. Shell 字符截取命令 awk
  14. xdoj-1243 (费马平方和问题)
  15. Linux下静态库和动态库
  16. openssl AES加密
  17. 组数排序非sort
  18. POJ 1247
  19. (转)Python——functools
  20. paypal对接

热门文章

  1. jdbcTemplate进行CRUD,查询结果转json
  2. HDU1022--Train Problem I(栈的应用)
  3. navicat_premium_x64最新版安装说明
  4. JavaWEB开发03——JS
  5. fastJson对象转字符串首字母小写问题
  6. php中处理汉字字符串长度:strlen和mb_strlen
  7. RAC+单实例场景下 DG主备切换,报ORA-01577
  8. leetcode 441.排列硬币(python)
  9. C#接口的实现和继承实践
  10. Django聚合数据