背景经常用到以下属性:

background-color: aliceblue;
background-image: url('2017102601.png');
background-position: center bottom;
/*background-attachment: scroll;*/
background-attachment:fixed;
background-repeat: no-repeat;

特别注意:

1、background-position如果只写一个值,那么第二值默认是center

2、background-attachment的值是scroll的时,它是相对盒子进行定位的。如果是fixed的话,它是相对于浏览器进行定位。

属性的连写:

background: red url('2017102601.png') no-repeat bottom center scroll;

最新文章

  1. Duilib源码分析(六)整体流程
  2. C(++) Websocket消息推送---GoEasy
  3. 关于求解不定方程的n(n-1)=2m(m-1)的解法的总结
  4. phpexcel 导入导出
  5. startDiscovery() and startLeScan().
  6. PHP中的可变参数函数和可选参数函数
  7. office文件密码破解方法及软件
  8. 安装、配置JDK的步骤
  9. linux学习笔记之硬盘分区
  10. javascript 事件处理
  11. Android使得手机拍照功能的发展(源共享)
  12. Python 入门介绍
  13. Java生成、解析二维码
  14. QUICK-AP + BETTERCAP 搭建热点, 欺骗局域网内用户下载任意可执行文件
  15. Pycharm,Python原生IDE?
  16. laravel blog edit
  17. 安装bootcamp时提示“找不到$winpedriver$文件夹,请验证该文件夹是否和bootcamp处于同一文件夹内?”
  18. Oracle ORA-14102: 只能指定一个 LOGGING 或 NOLOGGING 子句
  19. spring quartz动态修改执行时间
  20. Win10+Ubuntu16.04双系统安装过程中遇到的一些问题及解决办法

热门文章

  1. Inversion
  2. H3c 配置ssh acl
  3. MySQL出现:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.
  4. Ubuntu下常规方法安装软件
  5. spring mvc日期转换(前端到后端,后端到前端)
  6. java界面编程(9) ------ 列表框
  7. android_handler(一)
  8. Ajax跨域、Json跨域、Socket跨域和Canvas跨域等同源策略限制的解决方法
  9. tomcat的localhost_access_log日志文件
  10. Window attributes属性详解