< thead>的好处是什么? [英] What is benefit of <thead>

查看:94
本文介绍了< thead>的好处是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用thead代替td有什么好处?如果有利... ...

解决方案

thead ,<$使用HTML中的c $ c> tbody 和 tfoot 元素将表格行按照其内容分组为逻辑部分。有两个主要原因可以做到这一点:


  1. 允许主体独立滚动
    标题和/或
    页脚


  2. 为了便于将不同的
    样式规则应用于不同的
    区段。


What is benefit of using thead instead of just td? If there is benefit...

解决方案

The thead, tbody, and tfoot elements in HTML are used to group table rows into logical sections based on their content. There are two main reasons you'd want to do this:

  1. To allow the body to be scrolled independently of the header and/or footer

  2. To make it easier to apply different style rules to the different sections of the table.

这篇关于&lt; thead&gt;的好处是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆