display:table-cell的应用[转]
source link: http://www.poetries.top/2016/09/07/display_table-cell%E7%9A%84%E5%BA%94%E7%94%A8%5B%E8%BD%AC%5D/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
display:table-cell的应用[转]
Created at 2016-09-08 Updated at 2017-01-06 Category Front-End Tag CSS
display:table-cell属性简述
display:table-cell
属性指让标签元素以表格单元格的形式呈现,类似于td
标签。目前IE8+
以及其他现代浏览器都是支持此属性的,但是IE6/7
只能对你说sorry了,这一事实也是大大制约了display:table-cell
属性在实际项目中的应用table-cell
同样会被其他一些CSS
属性破坏,例如float
,position:absolute
,所以,在使用display:table-cell
与loat:left
或是position:absolute
属性尽量不用同用。设置了display:table-cell
的元素对宽度高度敏感,对margin
值无反应,响应padding
属性
display:table-cell与大小不固定元素的垂直居中
- 使用
display:table-cell
让大小不固定元素垂直居中已经是很老的方法了
display:table-cell与两栏自适应布局
display:table-cell
可以用在两栏的自适应布局上- 对于不认识
display:table-cell
属性的IE6/7呢,使用display:inline-block属性代替display:table-cell
就完全ok
display:table-cell下的等高布局
table
表格中的单元格最大的特点之一就是同一行列表元素都等高。所以,很多时候,我们需要等高布局的时候,就可以借助display:table-cell属
性table
表格中的单元格最大的特点之一就是同一行列表元素都等高。所以,很多时候,我们需要等高布局的时候,就可以借助display:table-cell属
性
Recommend
-
44
Technical Articles
-
3
How to display the database retrieve values from one page to another page using an HTML table advertisements in this code "&l...
-
2
How to change the position of display objects that are in a table advertisements I want to create a table with display Obje...
-
10
Css—display:table-cell的几种应用 Posted on 2020-10-16...
-
3
display of the last 30 days with the table data advertisements I have a table of records that has a column with the created_date. I am looking for...
-
6
by zhangxinxu from http://www.zhangxinxu.com 本文地址:http://www.zhangxinxu.com/wordpress/?p=1187
-
6
jQuery How to Get Table Cell Value TD Value [4 ways] Satinder Singh / July 25, 2021 /
-
4
Responses
-
9
How to implement dynamic height table view cell (self sizing) by Axel Kee 23 Jan 2020 autolayout It'...
-
1
Adding a Cell Selection Callback to a Table in My MATLAB App » Stuart’s MATLAB Videos Here, I add a cell selection callback to a table in on...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK