CSS——background
2024-08-31 00:02:17
背景经常用到以下属性:
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;
最新文章
- Duilib源码分析(六)整体流程
- C(++) Websocket消息推送---GoEasy
- 关于求解不定方程的n(n-1)=2m(m-1)的解法的总结
- phpexcel 导入导出
- startDiscovery() and startLeScan().
- PHP中的可变参数函数和可选参数函数
- office文件密码破解方法及软件
- 安装、配置JDK的步骤
- linux学习笔记之硬盘分区
- javascript 事件处理
- Android使得手机拍照功能的发展(源共享)
- Python 入门介绍
- Java生成、解析二维码
- QUICK-AP + BETTERCAP 搭建热点, 欺骗局域网内用户下载任意可执行文件
- Pycharm,Python原生IDE?
- laravel blog edit
- 安装bootcamp时提示“找不到$winpedriver$文件夹,请验证该文件夹是否和bootcamp处于同一文件夹内?”
- Oracle ORA-14102: 只能指定一个 LOGGING 或 NOLOGGING 子句
- spring quartz动态修改执行时间
- Win10+Ubuntu16.04双系统安装过程中遇到的一些问题及解决办法
热门文章
- Inversion
- H3c 配置ssh acl
- MySQL出现:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.
- Ubuntu下常规方法安装软件
- spring mvc日期转换(前端到后端,后端到前端)
- java界面编程(9) ------ 列表框
- android_handler(一)
- Ajax跨域、Json跨域、Socket跨域和Canvas跨域等同源策略限制的解决方法
- tomcat的localhost_access_log日志文件
- Window attributes属性详解