Introduction to CSS
2013-03-23 14:21
148 查看
1、样式表使用的两种方式
html文件中直接使用
<style>
p {
color:red;
}
</style>
使用css文件
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
2、CSS的语法
h3 {
color:red;
}
p {
font-family:Courier;
}
span {
background-color:yellow;
}
3、字体大小的设置
font-size:1em,这里的em是单位,它可以根据显示屏的大小而定,比px更动态
html文件中直接使用
<style>
p {
color:red;
}
</style>
使用css文件
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
2、CSS的语法
h3 {
color:red;
}
p {
font-family:Courier;
}
span {
background-color:yellow;
}
3、字体大小的设置
font-size:1em,这里的em是单位,它可以根据显示屏的大小而定,比px更动态
相关文章推荐
- [CSS] Introduction to CSS Columns
- 第一章:css介绍(CSS BASICS)Chapter 1 : Introduction to CSS
- Introduction to Browser-Specific CSS Hacks
- An Introduction to the Basics of Modern CSS Buttons
- MIT6.00 1x Lecture 1 - Introduction to Computation 学习笔记
- HTML CSS:A Trip to Webville
- Udacity cs344-Introduction to Parallel Programming学习笔记-第一单元
- 【文档摘要】J2EE Persistence - Introduction to the Java Persistence API【Managing Entities】
- [Node.js] Introduction to apiCheck.js
- Introduction to Latent Semantic Analysis
- Basic color schemes - Introduction to Color Theory
- An Introduction To SQLite
- Introduction to Microsoft Visual Studio(for beginners)step by step
- Introduction to Linux Device Driver Programming
- Introduction to mybatis
- Introduction to SIFT (Scale-Invariant Feature Transform)
- A星寻路算法介绍 Introduction to A* Pathfinding
- Introduction to Recommender Systems-Programming Assignment 1
- Introduction to DirectShow Application Programming
- MongoDB - Introduction to MongoDB, Databases and Collections