Home  >  Article  >  Web Front-end  >  Introduction to common attribute values ​​of display

Introduction to common attribute values ​​of display

零下一度
零下一度Original
2017-06-24 11:30:192784browse

Common attribute values

  • none: element hidden

  • block: block-level element

  • inline-block: inline block-level element

  • list-item: list item

  • Display of table series

  • table

  • table-row

  • ##flex (flexible box)

  1. .table{display:table;border-collapse:collapse;border:1px solid #ccc;}

  2. .table-caption{display:table -caption;margin:0;padding:0;font-size:16px;}

  3. .table-column-group{display:table-column-group;}

  4. .table-column{display:table-column;width:100px;}

  5. ##.table-row-group{display:table-row-group ;}
  6. .table-row{display:table-row;}
  7. .table-row-group .table-row:hover ,.table-footer-group .table-row:hover{background:#f6f6f6;}
  8. .table-cell{display:table-cell;padding:0 5px;border: 1px solid #ccc;}
  9. .table-header-group{display:table-header-group;background:#eee;font-weight:bold;}
  10. .table-footer-group{display:table-footer-group;}

The above is the detailed content of Introduction to common attribute values ​​of display. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Sublime shortcut key listNext article:Sublime shortcut key list