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

  • 相关阅读:
    二分查找
    苹果开发人员账号注冊流程
    cocos2d_android 瞬间动作
    Qt多线程学习:创建多线程
    Java模式(适配器模式)
    代理方法keywordAction与Fun的使用
    装饰者模式
    编写你自己的单点登录(SSO)服务
    4种Java引用浅解
    strtok和strtok_r
  • 原文地址:https://www.cnblogs.com/jego/p/7257283.html
Copyright © 2011-2022 走看看