CSS 宽,高,背景设置
2024-10-07 11:00:36
width 宽,height 高,background 背景;
背景色 background-color:颜色值--英文单词/十六进制/rgb;
背景图 background-image:url(‘图片路径’);
背景图平铺 background-repeat:no-repeat / repeat-x / repeat-y;
背景图定位 background-position:第一个x轴位置的值(left center right 30px) 第二个y轴位置的值(top center bottom 60px)
复合写法:background : color image position repeat;
背景图滚动 background-attachment:fixed;
背景图尺寸 background-size:第一个x轴比例的值 第二个y轴比例的值;【CSS3的样式不兼容】
最新文章
- shell 计算
- Mac上搭建Nginx + rtmp
- poj1006Biorhythms(同余定理)
- Java实现MySQL数据库备份(一)
- Spring----->;projects----->;Spring Web Flow
- 使用6to5,让今天就来写ES6的模块化开发!
- java内部类的作用分析
- Spark Core源代码分析: Spark任务运行模型
- [学习笔记]设计模式之Singleton
- 对话框(alert,prompt,confirm,showModalDialog)
- bootstrap + angularjs + seajs构建Web Form前端(1)
- SQL总结之增删改查
- Java:print、printf、println的区别
- 【Shader拓展】Illustrative Rendering in Team Fortress 2
- 经典面试题-python函数之默认参数
- redhat yum
- Azure DevOps Server(TFS): 在Excel中解除服务器同步
- python3 installed 安装 pip3
- [linux] VirtualBox复制虚拟机
- 数据结构与算法之Stack(栈)的应用——in dart
热门文章
- webpack 命令 Module build failed (from ./node_modules/babel-loader/lib/index.js) 错误问题解决方案
- Redis Cluster 4.0.9 集群安装搭建
- PHP mb_substr mbstring 函数
- 060、Java中定义有返回值有参数的方法
- P1049 数列的片段和
- JS+CSS - table 表格固定表头和第一列、内容可滚动 (转载)
- Vue - 项目配置 ( element , 安装路由 , 创建路由 )
- tf.argmax()函数作用
- 138-PHP static后期静态绑定(一)
- Power BI Desktop 安装环境