zoukankan      html  css  js  c++  java
  • HTML th nowrap 属性

    [

    HTML <th> nowrap 属性
    HTML <th> 标签

    实例

    带有 nowrap 属性的表头单元格:

    
      
    
        <table border="1">
    
      <tr>
    
        <th>Month</th>
    
        <th nowrap>My Savings for a new car</th>
    
      </tr>
    
      <tr>
    
        <td>January</td>
    
        <td>$100</td>
    
      </tr>
    
      <tr>
    
        <td>February</td>
    
        <td>$80</td>
    
      </tr>
    
    	</table>
    
      
    
    

    浏览器支持

    所有主流浏览器都支持 nowrap 属性。

    定义和用法

    HTML5 不支持 <th> nowrap 属性。请使用 CSS 代替。
    在 HTML 4.01 中,<th> 的 nowrap 属性 已废弃。
    nowrap 属性是一个布尔属性。
    nowrap 属性规定表头单元格中的内容不换行。

    兼容性注释

    在 HTML 4.01 中,<th> 的 nowrap 属性已废弃。请使用 CSS 代替。
    CSS 语法:<th style="white-space: nowrap">
    CSS

    实例:表头单元格中不换行
    在我们的 CSS 教程中,您可以找到更多有关

    white-space 属性 的细节。

    HTML 与 XHTML 之间的差异

    在 XHTML 中,禁止属性最小化,nowrap 属性必须定义为 <th nowrap="nowrap">。

    语法

    <th nowrap>

    HTML <th> 标签

    ]
    转载请保留页面地址:https://www.breakyizhan.com/html/23185.html
  • 相关阅读:
    jQuery火箭图标返回顶部代码
    质数和分解(完全背包)
    CodeForces
    FZU
    FZU
    Pets(匈牙利算法)
    Construct a Matrix (矩阵快速幂+构造)
    绝世好题(线性dp)
    String painter (区间dp)
    Funny Positive Sequence (思维+前缀)
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13282724.html
Copyright © 2011-2022 走看看