zoukankan      html  css  js  c++  java
  • css之列表属性


    list-style简写属性在一个声明中设置所有的列表属性。
      可以设置的属性(按顺序): list-style-type, list-style-position, list-style-image.

      ul li{list-style:none;}

    list-style-type属性设置列表项标记的类型
    none  无标记。
    disc  默认。标记是实心圆。
    circle  标记是空心圆。
    square  标记是实心方块。
    decimal  标记是数字。
    decimal-leading-zero    0开头的数字标记。(01, 02, 03,等。)
    lower-roman  小写罗马数字(i, ii, iii, iv, v,等。)
    upper-roman  大写罗马数字(I, II, III, IV, V,等。)
    lower-alpha  小写英文字母The marker is lower-alpha (a, b, c, d, e,等。)
    upper-alpha  大写英文字母The marker is upper-alpha (A, B, C, D, E,等。)
    lower-greek  小写希腊字母(alpha, beta, gamma,等。)
    lower-latin  小写拉丁字母(a,   b, c, d, e,等。)
    upper-latin  大写拉丁字母(A,  B, C, D, E,等。)
    hebrew  传统的希伯来编号方式
    armenian  传统的亚美尼亚编号方式
    georgian  传统的乔治亚编号方式(an,     ban, gan,等。)
    cjk-ideographic  简单的表意数字
    hiragana  标记是:a,     i, u, e, o, ka, ki,等。(日文片假名)
    katakana  标记是:A,     I, U, E, O, KA, KI,等。(日文片假名)
    hiragana-iroha  标记是:i, ro, ha, ni, ho, he, to,等。(日文片假名)
    katakana-iroha  标记是:I, RO, HA, NI, HO, HE, TO,等。(日文片假名)

    list-style-position

      inside                   使列表前的样式包含在列表中

      outside                 使列表前的样式分离在列表外

    list-style-image  列表前加图片样式,单独加

      ul li {list-style-image:url}

  • 相关阅读:
    [erlang] Erlang继承(inheritance)
    [python]python 动态调用模块&类&方法
    [mysql]将mysql输入内容保存文件
    [erlang] Erlang TCP(gen_tcp)
    hdu 3350 #define is unsafe && hdu3328 Flipper
    hdu 1690 Bus System
    hdu 1401 Solitaire (双向广搜)
    hdu3172 Virtual Friends (并查集+字典树)
    hdu1426 Sudoku Killer
    hdu3111 Sudoku (精确覆盖解数独 DLX)
  • 原文地址:https://www.cnblogs.com/fxty/p/7044512.html
Copyright © 2011-2022 走看看