zoukankan      html  css  js  c++  java
  • HTML元素的默认样式

    html,body,div,  h1,h2,h3,h4,h5,h6,p,  ol,ul,dl,dt,dd,
    frame,frameset,form,fieldset,  blockquote,address,hr,pre 
    { display: block }
    button,textarea,input,select 
    { display: inline-block }
    li           
    { display: list-item }
    head         
    { display: none }
    table        
    { display: table }
    caption      
    { display: table-caption }
    thead        
    { display: table-header-group }
    tbody        
    { display: table-row-group }
    tfoot        
    { display: table-footer-group }
    tr           
    { display: table-row }
    col          
    { display: table-column }
    colgroup     
    { display: table-column-group }
    td,th        
    { display: table-cell }

    caption     
    { text-align: center }
    th          
    { font-weight: bolder; text-align: center }

    body     
    { margin: 8px }
    blockquote      
    { margin-left: 40px; margin-right: 40px }
    h4,p,blockquote,ul,fieldset,form,ol,dl 
    { margin: 1.12em 0 }
    h1       
    { font-size: 2em;    margin: 0.67em 0 }
    h2       
    { font-size: 1.5em;  margin: 0.75em 0 }
    h3       
    { font-size: 1.17em; margin: 0.83em 0 }
    h5       
    { font-size: 0.83em; margin: 1.5em  0 }
    h6       
    { font-size: 0.75em; margin: 1.67em 0 }

    pre  
    { white-space: pre }

    h1,h2,h3,h4,h5,h6,strong  
    { font-weight: bolder }

    cite,em,var,address 
    { font-style: italic }
    pre,code,kbd,samp   
    { font-family: monospace }
    sub,sup   
    { font-size: .83em }
    sub   
    { vertical-align: sub }
    sup   
    { vertical-align: super }
    table      
    { border-spacing: 2px; }
    thead,tbody,tfoot           
    { vertical-align: middle }
    td, th          
    { vertical-align: inherit }
    del             
    { text-decoration: line-through }
    ins             
    { text-decoration: underline }
    hr              
    { border: 1px inset }
    ol, ul, dd        
    { margin-left: 40px }
    ol              
    { list-style-type: decimal }
    ol ul, ul ol, ul ul, ol ol    
    { margin-top: 0; margin-bottom: 0 }
    :link, :visited 
    { text-decoration: underline }
    br:before 
    { content: "\A" }
    :before, :after 
    { white-space: pre-line }
    :focus 
    { outline: thin dotted invert }
  • 相关阅读:
    Web网站架构演变—高并发、大数据
    企业级Nginx Web服务优化实战
    初始化mysql数据库时提示字符编码错误的解决办法
    linux下logrotate 配置和理解
    Centos 5.2下安装多个mysql数据库
    编译安装 mysql 5.5,运行 cmake报错Curses library not found
    Centos 5.5 编译安装mysql 5.5.9
    理解索引的基数
    centos下yum安装mysql5.6后,无法启动 MySQL Daemon failed to start
    如何从MySQL官方Yum仓库安装MySQL5.6
  • 原文地址:https://www.cnblogs.com/fxair/p/2577255.html
Copyright © 2011-2022 走看看