Home > Web Front-end > HTML Tutorial > 了解HTML CSS格式化排版 文字排版_html/css_WEB-ITnose

了解HTML CSS格式化排版 文字排版_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:26:57
Original
1107 people have browsed it

这里简单的写一些涉及到字体排版中常用到的属性, 大家可以学习查看, 也可以mark下以后看.

font-family: "Micrsoft Yahei"; 设置字体

font-size: 20px; 设置字号

color: red; 设置颜色

font-weight: bold; 文字加粗

font-style: italic; 文字斜体

text-decoration: underline; 文字下划线

text-decoration: line-through; 文字删除线

text-indent: 2em; 段落缩进

text-align; center; 段落排版居中(左右分别是, left, right)

line-height: 2em; 行间距

letter-spacing: 20px; 字间距(中文)

word-spacing: 50px; 单词间距

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template