zoukankan      html  css  js  c++  java
  • table的设置(w3c)

    <td width='10px' style=' font-size: 12px;'>   //设置table的宽度 ,以及字体的大小


    可选的属性

    DTD 指示此属性允许在哪种 DTD 中使用。S=Strict, T=Transitional, F=Frameset.

    属性 描述 DTD
    align
    • left
    • center
    • right

    不赞成使用。请使用样式代替。

    规定表格相对周围元素的对齐方式。

    TF
    bgcolor
    • rgb(x,x,x)
    • #xxxxxx
    • colorname

    不赞成使用。请使用样式代替。

    规定表格的背景颜色。

    TF
    border pixels 规定表格边框的宽度。 STF
    cellpadding
    • pixels
    • %
    规定单元边沿与其内容之间的空白。 STF
    cellspacing
    • pixels
    • %
    规定单元格之间的空白。 STF
    frame
    • void
    • above
    • below
    • hsides
    • lhs
    • rhs
    • vsides
    • box
    • border
    规定外侧边框的哪个部分是可见的。 STF
    rules
    • none
    • groups
    • rows
    • cols
    • all
    规定内侧边框的哪个部分是可见的。 STF
    summary text 规定表格的摘要。 STF
    width
    • %
    • pixels
    规定表格的宽度。 STF

    白发三千丈
  • 相关阅读:
    Gym
    Gym
    Gym
    Gym
    Gym
    bzoj 2734: [HNOI2012]集合选数
    bzoj 1068: [SCOI2007]压缩
    HDU 2899 Strange fuction
    hihocoder #1142 : 三分·三分求极值
    HDU 2824 The Euler function
  • 原文地址:https://www.cnblogs.com/sanpoye/p/2659635.html
Copyright © 2011-2022 走看看