zoukankan      html  css  js  c++  java
  • HTML DOM Table summary 属性

    [

    Table summary 属性
    Table 对象

    定义和用法

    summary 属性可设置或返回表格的概述。
    summary 属性可设置或返回表格的概述。

    语法

    设置 summary 属性:

    tableObject.summary="text"

    返回 summary 属性:

    tableObject.summary

    提示: summary 属性没有默认值。

    描述
    text 摘要文本

    浏览器支持

    所有主要浏览器都支持 summary 属性

    实例

    实例

    弹出表格的摘要:

    
    <!DOCTYPE html>
    
    <html>
    
    <head> 
    
    <meta charset="utf-8"> 
    
    <title>Break易站(runoob.com)</title> 
    
    <script>
    
    function displayResult(){
    
        alert(document.getElementById('myTable').summary);
    
    }
    
    </script>
    
    </head>
    
    <body>
    
    
    <table id="myTable" border="1" summary="例如表中的员工">
    
        <tr>
    
            <th>Firstname</th>
    
            <th>Lastname</th>
    
        </tr>
    
        <tr>
    
            <td>Peter</td>
    
            <td>Griffin</td>
    
        </tr>
    
        <tr>
    
            <td>John</td>
    
            <td>Doe</td>
    
        </tr>
    
    </table>
    
    <br>
    
    <button type="button" onclick="displayResult()">显示表格描述</button>
    
    
    </body>
    
    </html>
    
    

    Table 对象

    ]
    转载请保留页面地址:https://www.breakyizhan.com/html/22524.html
  • 相关阅读:
    ⑨.tomcat性能优化
    ⑧.tomcat安全优化
    Nginx.HSTS
    https证书auto
    ⑦.tomcat 常见故障
    ⑨mvstat
    ⑥.tomcat监控
    ⑥.tomcat多实例
    ⑤.tomcat的三种工作模式
    ④.tomcat配置文件server.xml
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13281328.html
Copyright © 2011-2022 走看看