CSS 定义的四种方法
2012-12-24 09:07
351 查看
CSS定义总共有四种方法:
<1>行内式(内联式):<h1 style="color:white;background-color:blue">This is a of Text.</h1>
<2>内嵌式(内部样式表):<style type="text/css">
h1{
color:white;
background-color:blue
}
</style>
<3>导入式(外部样式表):<style type="text/css">
@import"mystyle.css";
</style>
<4>链接式(外部样式表):<link href="mystyle.css" rel="stylesheet" type="text/css" />
<1>行内式(内联式):<h1 style="color:white;background-color:blue">This is a of Text.</h1>
<2>内嵌式(内部样式表):<style type="text/css">
h1{
color:white;
background-color:blue
}
</style>
<3>导入式(外部样式表):<style type="text/css">
@import"mystyle.css";
</style>
<4>链接式(外部样式表):<link href="mystyle.css" rel="stylesheet" type="text/css" />
相关文章推荐
- JavaScript 类的四种定义方法
- CSS特点及加入网页的四种方法
- 引用CSS文件到html网页里的四种方法
- CSS在页面使用的四种方法
- WPF开发学习:资源在内外部定义的不同方式和怎么引用,Style样式的四种使用(对比CSS)
- 定义不被SpringMVC拦截的静态资源(html, js, css等文件)通用方法
- CSS的四种设置方法以及CSS各种选择器的用法
- CSS三栏布局的四种方法
- Python - 不固定参数函数的定义,四种参数传递方法总结
- 在网页中页中加入CSS有几种方法!以及在样式定义有冲突时的优先级如何分配!
- css+div制作圆角矩形的四种方法
- 定义css设备类型-Media Queries图表简介及使用方法
- 固定高度div,随内容自动变高css定义方法
- 在web页面中引用css的四种方法
- javascript定义方法的四种途径
- html中引入css的四种方法
- HTML调用CSS的四种方法
- 用CSS定义单像素表格边框的简单方法
- CSS四种清除浮动的方法
- html中使用css的四种方法