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
  • 相关阅读:
    软考相关试题
    qt中的toUtf8, toLatin1, Local8bit, toUcs4(转)
    qt的中文乱码问题
    《左耳听风》-ARTS-打卡记录-第八周
    杂题
    图论
    基础数据结构
    整除
    同余
    常用数学
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13281328.html
Copyright © 2011-2022 走看看