<style type="text/css"></style>
样式 值
font-size(字大小) 数字 单位:px 例:7px
font-weight(是否加粗) normal(正常)、bold(粗体)、lighter(轻)
font-style(是否斜体) normal(正常)、italic(斜体)、oblique(倾斜)
font-family 字体名称
text-align(水平对齐方式) left(左)、center(中间)、right(右)、justify(齐行)
vertical-align top(顶端)、middle(中间)、bottom(底部)、sub(替代)、super(超出)、baseline(底线)
text-indent(缩进) 长度 单位em 例:2em
line-height(行高) normal(标准)
text-decoration(文本装饰) none(没有)、bline(闪烁)、underline(下划线)、line-through(划掉)
color(颜色)
用法:<p style="font-size:50px;" "font-family:黑体;">
div:hover{
background-coloe:green;
} (当鼠标移入div时,div.背景色显示为绿色)