CSS边框与背景[下]
2016-08-05 16:55
393 查看
笔记:
ctrl+s=保存
crtl+shift+s=另存为
crtl+n=新建
Ctrl+/ 注释单行。
Ctrl+Shift+/ 注释多行。
Ctrl+Z 撤销。
Ctrl+Y 恢复撤销。
index.html
<!DOCTYPE html> <html lang="zh-cn"> <head> <title>CSS边框与背景[下]</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div>我是<b>HTML5</b>>,我是<b>HTML5</b>>,我是<b>HTML5</b>>,</div> </body> </html>style.css:
@charset "utf-8"; /*html{ height:100%; }*/ body{ /*background-color: silver*/ /* background-image: url(1.gif);*/ /* background-repeat: repeat-x; background-repeat: no-repeat;*/ /* background-size: cover; background-size: 200px 200px; background-size: 100%;//仅仅显示一张图,并且充满等比例缩放 background-attachment: scroll;*/ } div{ width: 500px; height: 300px; border:10px dashed red; padding: 50px; ///简写形式 background: silver url(xiaogou.gif) no-repeat center /100% border-box center-box; background-color: silver; background-image: url(2.gif); /* background-repeat: no-repeat; background-position: bottom; background-position: left bottom;*/ /* background-image: url(/CSS边框与背景[下]/xiaogou.gif); background-repeat: no-repeat; background-repeat: no-repeat; border: :10px dashed red; background-origin: border-box; background-origin: padding-box; background-clip: border-box; background-clip: padding-box;*/ /*} div b{ background-color: red; } div b:first-child{ background-color: transparent; }*/
ppt:
重要:
相关文章推荐
- Web布局连载——两栏固定布局(五)
- [div+css]晒晒最新制作专题推广页模板
- 盒子模型
- CSS选择器
- CSS样式优先权
- [css] line-height 百分比单位和数值单位的区别
- css如何搞正方形
- Apple官网研究之使用Justify布局导航
- 关于前端的思考与感悟
- rem : web app适配的秘密武器
- jquery高级应用之Deferred对象
- 移动端点击事件全攻略,这里的坑你知多少?
- $q 实例分析 Angular 中的 Promise
- 浏览器中唤起native app || 跳转到应用商城下载
- Angular directive 实例详解
- 关于浮动与清除浮动,你应该知道的
- 数组reduce方法的高级技巧
- 设计更快的网页(三):字体和 CSS 调整