zoukankan      html  css  js  c++  java
  • display属性

    p
    {
    display: block
    }

    li
    {
    display: list-item
    }

    table
    {
    display: table
    }

    td, th
    {
    display: table-cell
    }

    Possible Values
    可能用到的值

    Value描述
    none The element will not be displayed
    元素将不会被显示出来
    block The element will be displayed as a block-level element, with a line break before and after the element
    元素将以块级元素的形式显示出来,在元素的前后都带有换行。
    inline The element will be displayed as an inline element, with no line break before or after the element
    元素将以inline元素的形式显示,元素的前后不带有换行。
    list-item The element will be displayed as a list
    元素将以别表的形式显示出来。
    run-in The element will be displayed as block-level or inline element depending on context
    元素将根据它的上下文来以块级或是inline元素的形式显示。
    compact The element will be displayed as block-level or inline element depending on context
    元素将根据它的上下文来以块级或是inline元素的形式显示。
    marker  
    table The element will be displayed as a block table (like <table>), with a line break before and after the table
    元素以表格区的形式来显示(像<table>),表格前后带有换行。
    inline-table The element will be displayed as an inline table (like <table>), with no line break before or after the table
    元素将inline表格的形式来显示(像<table>),表格的前后不带换行
    table-row-group The element will be displayed as a group of one or more rows (like <tbody>)
    元素将以一行或多行的组来显示(像<tbody>)
    table-header-group The element will be displayed as a group of one or more rows (like <thead>)
    元素将以一行或多行的组来显示(像<thead>)
    table-footer-group The element will be displayed as a group of one or more rows (like <tfoot>)
    元素将以一行或多行的组来显示(像<tfoot>)
    table-row The element will be displayed as a table row (like <tr>)
    元素讲以表格行的形式来显示(像<tr>)
    table-column-group The element will be displayed as a group of one or more columns (like <colgroup>)
    元素将以一列或多列组的形式来显示(像<colgroup>)
    table-column The element will be displayed as a column of cells (like <col>)
    元素将以单元格的一列来显示(像<col>)
    table-cell The element will be displayed as a table cell (like <td> and <th>)
    元素将以表格单元的形式来显示(像<td>和<th>)
    table-caption The element will be displayed as a table caption (like <caption>)
    元素将以表格标题的形式来显示(像<caption>)
  • 相关阅读:
    20171012
    BZOJ[2563] 阿狸和桃子的游戏
    BZOJ[1028] [JSOI2007]麻将
    BZOJ[1972] [Sdoi2010]猪国杀
    BZOJ[1033] [ZJOI2008] 杀蚂蚁antbuster
    P5651 基础最短路练习题
    P3047 [USACO12FEB]Nearby Cows G
    P6190 魔法
    P2391 白雪皑皑 / BZOJ 2054 疯狂的馒头
    CSP 2020 J/S 初赛游记
  • 原文地址:https://www.cnblogs.com/zfc2201/p/2460827.html
Copyright © 2011-2022 走看看