css: basics and text
来源:互联网 发布:太极越狱 网络异常 编辑:程序博客网 时间:2024/06/06 09:51
three types of selector
1. directly apply to html element.
2. unique selector that occurs at most once in a html file.
3. normal selector that can occurs any times in one html file.
block element and line element.
Most of html elements are block elements, that means the content contained by a block element is viewed as a block, not a line. The rest are line elements such as '<em></em>'
position
The favorite position method is relative position.
Tips: 'left' and 'top' properties are available if the 'position' property is 'relavtive' or 'absolute'.
details:
For absolutely positioned elements, the left property sets the left edge of an element to a unit to the left/right of the left edge of its containing element.
For relatively positioned elements, the left property sets the left edge of an element to a unit to the left/right to its normal position.
For example:
text attributes
common attributes: color, font-family, font-size.
line spacing: line-height. The unit of value can be 'pt', 'em' and 'percentage', and 'em' and 'percentage' are recommended.
word spacing: word-spacing. The unit of value is same to line-height.
synthesis attribute: font, which is a synthesis of a bundle of attributes about real font.
The format of 'font' is 'font-style font-variant font-weight font-size/line-height font-family'.
For example: font: italic bold 12px/20px arial,sans-serif;
text decoration: text-decoration: underline | overline | linethrough | blink.
- css: basics and text
- Basics CSS
- RefPtr and PassRefPtr Basics
- RefPtr and PassRefPtr Basics
- RefPtr and PassRefPtr Basics
- Backup and Recovery Basics
- Reflection Basics and Class Class
- Javascript basics - types and variables
- Basics of telnet and http
- IIS and ASP.net Basics
- Text Editor: The Basic of Basics
- CSS Text
- CSS Text
- css text
- Basics
- Security Basics and ASP.NET Support
- MagentoModels and ORM Basics(summary)
- I. The Basics---Introduction----Graphics and Rendering
- 互斥变量上锁!
- 基于DiskOnChip在linux下的安装使用
- DLL封装 C++
- vi tab自动转换为空格
- Windows客户端与Android服务端的Socket通信(USB
- css: basics and text
- Awk学习笔记PDF版本
- 要做的习题
- 编程体会
- 文档分享:C++学习笔记 PDF版本
- About touch_icon and favicon
- Android文件下载进度条的实现
- 异常:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
- android 自定义搜索 的简单实现