zoukankan      html  css  js  c++  java
  • css元素内容基础

    设置元素内容的字体  

        1.设置字体名称:font-family,如宋体,Times New Roman,多个字体用逗号隔开,中文用单引号或者双引号隔开,字体名称有许多单词组成,使用双引号组合。
        
        2.设置字体倾斜程度:font-style,可选的属性值包括normal、italic、oblique
        
        3.设置字体的变体:font-variant,包括normal、small-caps

        4.设置自重:font-weight,包括normal、bold、bolder、ligher、100-900

        5.设置字体大小:font-size

    设置元素内容文本属性**

        1.设置文本首行缩写:text-indent,包括length、percentage

        2.设置文本对齐方式:text-align,包括left、right、center

        3.设置文本修饰方式:text-decoration,包括none、underline、overline、line-through、blink

        4.设置文本阴影特效:text-shadow

        5.设置行高:linne-height,包括数字,长度,百分比,normal

    设置元素内容字体颜色或背景

        1.设置背景色:background-color
        
        2.设置背景图像:background-image
        
        3.设置图像排铺:background-repeat

        4.设置图像固定或滚动:background-attchment

        5.设置背景显示位置:background-position

    设置列表格式

        1.list-style-image

        2.list-style-type

        3.list-style-position

    设置边框

        1.边框宽度:border-width

        2.边框风格:border-style

        3.边框颜色:border-color

        4.边框上:border-top

        5.边框右:border-right

        6.边框底部:border-bottom

        7.边框左:border-left

  • 相关阅读:
    Linux合并iso
    Oracle中使用escape关键字实现like匹配特殊字符,以及&字符的转义
    hash算法-time33算法
    理解JMS规范中消息的传输模式和消息持久化
    Oracle启动
    Weblogic缓存
    shell
    Hibernate 延迟载入
    Android获取cpu使用率,剩余内存和硬盘容量
    TestNG的组測试和组中组測试
  • 原文地址:https://www.cnblogs.com/jego/p/7257283.html
Copyright © 2011-2022 走看看