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 }
  • 相关阅读:
    [LeetCode] 875. Koko Eating Bananas 科科吃香蕉
    [LeetCode] 874. Walking Robot Simulation 走路机器人仿真
    [LeetCode] 995. Minimum Number of K Consecutive Bit Flips 连续K位翻转的最小次数
    [LeetCode] 873. Length of Longest Fibonacci Subsequence 最长的斐波那契序列长度
    [LeetCode] 872. Leaf-Similar Trees 叶结点相似的树
    [LeetCode] 870. Advantage Shuffle 优势洗牌
    [LeetCode] 869. Reordered Power of 2 重新排序为2的倍数
    [LeetCode] 868. Binary Gap 二进制间隙
    [LeetCode] 867. Transpose Matrix 转置矩阵
    [LeetCode] 866. Prime Palindrome 质数回文数
  • 原文地址:https://www.cnblogs.com/fxair/p/2577255.html
Copyright © 2011-2022 走看看