html表与css显示表 [英] html table vs css display table

查看:117
本文介绍了html表与css显示表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近问了一个问题,这里并且其中一个答案建议使用display:table和display:table-cell css属性。

Recently I asked a question here and one of the answer suggests to use display: table and display: table-cell css properties.

一般UI设计者建议不要使用表格来布局。如果我使用这两个css属性extesively同时布局怎么办?是否与使用表格布局相同?

Generally UI designers recommend not to use tables for layout. What if I use these two css properties extesively while layout? Is it the same as using tables for layout?

推荐答案

显示表让元素表现得像一个元素而不使用HTML表元素,所以可能你会对你的开发有更多的灵活性。所以你会有一个表的好处和没有表的开发的灵活性,因为表总是困难和难以工作

The display table let the element behave like a element without using a HTML table element, so probably you will have more flexibility on your development. So you will have the benefits of a table and the flexibility of development without table, becase tables are always difficult and and hard to work

这篇关于html表与css显示表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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