百度空间 | 百度首页 
               
 
查看文章
 
给朋友做的CSS入门教程(原创)
2008-02-29 05:26 P.M.

下载地址:地址一

文本说明附件:

第一部分(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>


类别:div+css | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu