下载地址:地址一
文本说明附件:
第一部分(CSS的简单介绍)
CSS 是 Cascading Style Sheet 的缩写。译作「层叠样式表单」。
第二部分(CSS附加网页样式的两种方法)
<head>
<title>文档标题</title>
<link rel=stylesheet href="http://www.dhtmlet.com/dhtmlet.css" type="text/css">
</head>
<html>
<head>
<title>文档标题</title>
<style type="text/css">
<!--
body {font: 10pt "Arial"}
h1 {font: 15pt/17pt "Arial"; font-weight: bold; color: maroon}
h2 {font: 13pt/15pt "Arial"; font-weight: bold; color: blue}
p {font: 10pt/12pt "Arial"; color: black}
-->
</style>
</head>
<body>
第三部分(CSS的语法介绍)
样式表语法 (CSS Syntax)
Selector { property: value }
参数说明:
Selector -- 选择符 他的选择符号,有3种,我们打开CSS编辑器看一下~~
property : value -- 样式表定义。属性和属性值之间用冒号(:)隔开。多个定义之间用分号(;)隔开
第四部分(DIV+CSS web2.0网页布局的简单介绍)
<div id="header"></div>
<div id="content"></div>
<div id="globalnav"></div>
<div id="subnav"></div>
<div id="search"></div>
<div id="shop"></div>
<div id="footer"></div>
<head>
<title>测试文档</title>
<link rel=stylesheet href="CSS文件路径" type="text/css">
</head>
<body>
<div id="header"></div>
<div id="content"></div>
<div id="globalnav"></div>
<div id="subnav"></div>
<div id="search"></div>
<div id="shop"></div>
<div id="footer"></div>
</body>