Learning Notes for HTML/CSS/JS
2014-03-02 15:29
267 查看
@1:内部样式表 & 外部样式表
内部样式表的定义,放在<style></style>中,<style>标签放在<head>中
当多个HTML文档使用相同的样式表定义时,就应该使用外部样式表。通过在<head>标签中插入<link>标签,来将外部样式表文件链接到HTML文档中。
内部样式表的定义,放在<style></style>中,<style>标签放在<head>中
<html> <head> <title>Demo</title> <style type="text/css" media="screen"> h1 { color:red; font-style:italic; } </style> </head> <body> <h1>heading</h1> </body> </html>
当多个HTML文档使用相同的样式表定义时,就应该使用外部样式表。通过在<head>标签中插入<link>标签,来将外部样式表文件链接到HTML文档中。
<html> <head> <title>Demo</title> <link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" charset="utf-8"> <style type="text/css" media="screen"> h1 { color:red; font-style:italic; } </style> </head> <body> <h1>heading</h1> </body> </html>
相关文章推荐
- HTML&CSS Learning Notes 5
- HTML&CSS Learning Notes 2
- HTML&CSS Learning Notes 6
- HTML&CSS Learning Notes 3
- HTML&CSS Learning Notes 2 (Additional)
- HTML&CSS Learning Notes 1
- HTML&CSS Learning Notes 4
- Data structures for game programming learning notes (六)——stack and queue
- KindEditor编辑器关闭过滤html,js,css标题方法
- 利用js、css、html固定table的列头不动
- 【嘉兴东臣php】HTML+CSS+JS基础学习笔记
- JS+CSS+HTML 前端开发(八)
- 【转】HTML <!--...--> 注释 、CSS/JS //注释 和 /*.....*/ 注释
- 浏览器加载和渲染html的顺序(html/css/js)
- 让Editplus自动格式化js、css、html。。。
- 详解iOS 加载本地HTML,css,js
- Sublime Text 3使用SublimeLinter配置JS,CSS,HTML语法检查
- html+css+js 模拟win7桌面
- FireBug 编辑,监视,调试JS、CSS、HTML的利器
- 小仙女 html、css、js基础Java实训05