亦景屿网格社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
热搜:
查看:373|回复:65

[转帖] css文本属性

[复制链接]
楼主
发表于2026-11-22 23:28:32|只看该作者回帖奖励|倒序浏览|阅读模式
    多个单词使用引号*/
    div {
       font-family: Arial,本属 "Helvetica Neue", Helvetica, sans-serif;
    }

    /*字体大小*/
    font-size: 30px;

    /*字体粗细*/                      /*【700  bold 加粗】 ; 【400 normal常规】*/
    font-weight: 700;

    /*斜体*/
    font-style: italic;
    /*让倾斜变得不倾斜*/
    font-style: normal;

    /*符合性写法*/
    font: italic 700 16px "Microsoft yahei";
    /*font: 不倾斜 - 字体的粗细 - 字体大小行高 - 字体类型*/


    2.文本对齐

    /*左边*/
    text-align: left;

    /*居中*/
    text-align: center;

    /*右边*/
    text-align: right;


    3.装饰文本

    /*取消下划线*/
    text-decoration: none

    /*下划线*/
    text-decoration: underline;

    /*上划线*/
    text-decoration: overline;

    /*删除线*/
    text-decoration: line-through;


    4.文本缩进

    /*文字大小的2倍   或者是  2em */
    text-indent: 20px;


    5.行高继承

    line-height: 36px;

    /*父亲元素 文字的1.5倍 行高的1.5倍*/
    font:12px/1.5

    1.字体样式

    让倾斜变得不倾斜/*英文逗号隔开,  
                              

您需要登录后才可以回帖 登录 | 注册

本版积分规则

综合|焦点|探索|热点|时尚|知识| ( 浙ICP备181366号-1 )

Powered by 亦景屿网格社区X3.4

© 2001-2017

返回顶部