zoukankan      html  css  js  c++  java
  • HTML table border 属性

    [

    HTML <table> border 属性
    HTML <table> 标签

    实例

    下面的 HTML 表格将显示围绕表格单元的边框:

    
      
    
        <table border="1">
    
    	 
    
    	<tr>
    
    	   
    
    	<th>Month</th>
    
    	   
    
    	<th>Savings</th>
    
    	 
    
    	</tr>
    
    	 
    
    	<tr>
    
    	   
    
    	<td>January</td>
    
    	   
    
    	<td>$100</td>
    
    	 
    
    	</tr>
    
    	 
    
    	<tr>
    
    	   
    
    	<td>February</td>
    
    	   
    
    	<td>$80</td>
    
    	 
    
    	</tr>
    
    	</table>
    
      
    
    

    浏览器支持

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

    定义和用法

    border 属性规定表格单元周围是否显示边框。
    值 "1" 指示应该显示边框,且表格不用于布局目的。

    HTML 4.01 与 HTML5之间的差异

    在 HTML5 中,border 属性仅用于指示表格是否用于布局目的,且只允许属性值 "" 或 "1"。

    语法

    <table border="1">

    属性值

    描述
    "" 表格单元周围没有边框(表格可用于布局目的)。
    "1" 在表格单元周围添加边框(表格不用于布局目的)。

    HTML <table> 标签

    ]
    转载请保留页面地址:https://www.breakyizhan.com/html/23087.html
  • 相关阅读:
    [UVa514] Rails
    今日才真正懂了BFS
    [UVa11292] Dragon of Loowater
    [UVa] TEX Quotes
    白书杂七杂八
    [OpenJudge] Feed_Accounting
    [OpenJudge] Jolly_Jumpers
    Restart
    Collection of Websites
    Oracle11完全卸载方法
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13263444.html
Copyright © 2011-2022 走看看