• 常用的文本属性和注解


    文本属性
    font-weight: bold;            字体宽度;
    font-size: 20px;             字体大小;
    font-family: 宋体;             字体系列;
    font-style: italic;               字体倾斜;
    color: red;                字体颜色;
    opacity: 0.9;                       字体透明度;
    line-height: 20px;               字体高度;
    letter-spacing: 5px;            字符间距;
    text-align: center;            字体对齐方式;
    text-indent: 2em;            +缩进、-悬挂;
    text-decoration: overline;          相当于u标签、s标签、给字加线;
    text-decoration-color: #ff7300;       线的颜色;
    text-decoration-style: dashed;        线的分格 例如:虚线;
    text-decoration-line: underline;       相当于u标签、s标签、给字加线;
    overflow: hidden;             溢出部分隐藏;
    text-overflow: ellipsis;           隐藏部分显示方式;
    white-space: nowrap;           文体不换行;’
    text-shadow: -5px -5px 10px yellow;    水平便宜、垂直偏移 模糊距离;
    text-indent: hanging;          
    -webkit-text-stroke: 2px black;       描边距离、描边颜色

    特殊符

                        空格
    &lt;html&gt;                 在浏览器中显示<html>
    H<sub>2</sub>O              水的化学符号
    2<sup>3</sup>               2的3次方
  • 相关阅读:
    your account already has a valid ios distribution certificate
    uinavigation样式
    phonegap ios默认启动页
    git init出错
    ios assetlibrary
    uitableviewcell高度自适应笔记
    ios frame bounds applicationframe
    java学习笔记
    file not found while xcode archive
    c++回调
  • 原文地址:https://www.cnblogs.com/ytsbk/p/7228601.html
Copyright © 2020-2023  润新知