日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

html表格ui,table表格 - 基础 - H-ui前端框架官方网站

發(fā)布時(shí)間:2024/7/19 HTML 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html表格ui,table表格 - 基础 - H-ui前端框架官方网站 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

表格

系統(tǒng)默認(rèn)表格

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table H-ui默認(rèn)

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table-border 帶水平線

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table-bg th帶背景

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table-bordered 帶外邊框

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.radius 圓角

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table-striped 奇數(shù)行背景設(shè)為淺灰色

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

.table-hover 鼠標(biāo)懸停樣式

表頭

表頭

表頭

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

類別

表格內(nèi)容

表格內(nèi)容

...

定義顏色

Class

描述

.active

懸停在行

.success

成功或積極

.warning

警告或出錯(cuò)

.danger

危險(xiǎn)

Class描述

.active懸停在行.success成功或積極.warning警告或出錯(cuò).danger危險(xiǎn)

對(duì)齊方式

對(duì)齊方式

類名

居左

默認(rèn)

居中

.text-c

居右

.text-r

對(duì)齊方式類名

居左默認(rèn)居中.text-c居右.text-r

友情提示:可以給tr整行加,也可以單獨(dú)給td 或者th 設(shè)置

CSS代碼/*默認(rèn)table*/

table{width:100%;empty-cells:show;background-color:transparent;border-collapse:collapse;border-spacing:0}

table th{text-align:left; font-weight:400}

/*帶水平線*/

.table th{font-weight:bold}

.table th,.table td{padding:8px;line-height:20px}

.table td{text-align:left}

.table tbody tr.success > td{background-color:#dff0d8}

.table tbody tr.error > td{background-color:#f2dede}

.table tbody tr.warning > td{background-color:#fcf8e3}

.table tbody tr.info > td{background-color:#d9edf7}

.table tbody + tbody{border-top:2px solid #ddd}

.table .table{background-color:#fff}

/*帶橫向分割線*/

.table-border{border-top:1px solid #ddd}

.table-border th,.table-border td{border-bottom:1px solid #ddd}

/*th帶背景*/

.table-bg thead th{background-color:#F5FAFE}

/*帶外邊框*/

.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0}

.table-bordered th,.table-bordered td{border-left:1px solid #ddd}

.table-border.table-bordered{border-bottom:0}

/*奇數(shù)行背景設(shè)為淺灰色*/

.table-striped tbody > tr:nth-child(odd) > td,.table-striped tbody > tr:nth-child(odd) > th{background-color:#f9f9f9}

/*豎直方向padding縮減一半*/

.table-condensed th,.table-condensed td{padding:4px 5px}

/*鼠標(biāo)懸停樣式*/

.table-hover tbody tr:hover td,.table-hover tbody tr:hover th{background-color: #f5f5f5}

/*定義顏色*/

/*懸停在行*/

.table tbody tr.active,.table tbody tr.active>td,.table tbody tr.active>th,.table tbody tr .active{background-color:#F5F5F5!important}

/*成功或積極*/

.table tbody tr.success,.table tbody tr.success>td,.table tbody tr.success>th,.table tbody tr .success{background-color:#DFF0D8!important}

/*警告或出錯(cuò)*/

.table tbody tr.warning,.table tbody tr.warning>td,.table tbody tr.warning>th,.table tbody tr .warning{background-color:#FCF8E3!important}

/*危險(xiǎn)*/

.table tbody tr.danger,.table tbody tr.danger>td,.table tbody tr.danger>th,.table tbody tr .danger{background-color:#F2DEDE!important}

/*表格文字對(duì)齊方式,默認(rèn)是居左對(duì)齊*/

.table .text-c th,.table .text-c td{text-align:center}/*整行居中*/

.table .text-r th,.table .text-r td{text-align:right}/*整行居右*/

.table th.text-l,.table td.text-l{text-align:left!important}/*單獨(dú)列居左*/

.table th.text-c,.table td.text-c{text-align:center!important}/*單獨(dú)列居中*/

.table th.text-r,.table td.text-r{text-align:right!important}/*單獨(dú)列居右*/

總結(jié)

以上是生活随笔為你收集整理的html表格ui,table表格 - 基础 - H-ui前端框架官方网站的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。