TheCSStextpropertiestheappearanceoftext.
CSS文字属性可用来定义文字外观
设置文字颜色Setthecolorofthetext
Thisexampledemonstrateshowtothecolorofthetext.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
设置文字背景色Setthebackground-colorofthetext
Thisexampledemonstrateshowtothebackground-colorofapartofthetext.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
指定相邻间隙Specythespacebetweencharacters
Thisexampledemonstrateshowtoincreaseordecreahespacebetweencharacters.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
对齐文字Alignthetext
Thisexampledemonstrateshowtoalignthetext.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
文字修饰Decoratethetext
Thisexampledemonstrateshowtoadddecorationtotext.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
文字在段落中缩进Indenttext
Thisexampledemonstrateshowtoindentthefirstlineofaparagraph.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
控制文字中字母Controlthelettersinatext
Thisexampledemonstrateshowtocontrolthelettersinatext.
Examples例子:
\" style=\"margin:0px 2px -3px 0px\" alt=\"div css xhtml xml Source Code to Run\"> Source Code to Run [www.52css.com]
=\"ubbbuttonrt\">[ 可先修改部分代码 再运行查看效果 ]
CSSTextProperties
CSS文字属性
TheCSStextpropertiesallowyoutocontroltheappearanceoftext.Itispossibletochangethecolorofatext,increaseordecreahespacebetweencharactersinatext,alignatext,decorateatext,indentthefirstlineinatext,andmore.
CSS文字属性允许你控制文字外观这可以改变文字颜色增加或者缩短文字间距文字对齐装饰第行文字缩进还有其他...
最新评论