最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
CSS初级教程 综合应用
时间:2022-07-02 12:44:51 编辑:袖梨 来源:一聚教程网
你应该已经在HTML初级教程的综合中创作了一个HTML文档,而且在CSS初级教程的的开始中增加了一行,用以把HTML文档和CSS文档联系起来。
下面的代码包括了所有我们在初级教程中所学习的方法。只要你把下面的保存起来作为CSS文档,然后在浏览器中查看HTML文档,你就可以理解每一个CSS的属性的表现和怎么应用。最好的方法就是花费时间修改CSS文档和HTML文档上的代码,然后在浏览器中查看到底发生了什么。
代码如下 | 复制代码 |
body { font-family: arial, helvetica, sans-serif; font-size: 80%; color: black; background-color: #ffc; margin: 1em; padding: 0; } /* 顺便说一句,这是注释 */ p { line-height: 1.5em; } h1 { color: #ffc; background-color: #900; font-size: 2em; margin: 0; margin-bottom: 0.5em; padding: 0.25em; font-style: italic; text-align: center; letter-spacing: 0.5em; border-bottom-style: solid; border-bottom-width: 0.5em; border-bottom-color: #c00; } h2 { color: white; background-color: #090; font-size: 1.5em; margin: 0; padding: 0.1em; padding-left: 1em; } h3 { color: #999; font-size: 1.25em; } img { border-style: dashed; border-width: 2px; border-color: #ccc; } a { text-decoration: none; } strong { font-style: italic; text-transform: uppercase; } li { color: #900; font-style: italic; } table { background-color: #ccc; } |
相关文章
- 大侠立志传定罪柴王四个线索攻略-大侠立志传定罪柴王线索有哪些 09-13
- 海龟蘑菇汤另辟蹊径怎么过 海龟蘑菇汤另辟蹊径答案 09-13
- 黎明之海如何切换船只-黎明之海常见玩法问题QA 09-13
- 江南百景图怎么运输人-江南百景图怎么运输居民 09-13
- 僵尸毁灭工程游戏开局有什么武器推荐?僵尸毁灭工程游戏开局武器排行榜 09-13
- 饥荒哈姆雷特怎么去女王岛-哈姆雷特饥荒怎么去别的岛 09-13