日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

php网页表格样式,分享7款颜色的CSS表格样式美化网页表格用户体验

發(fā)布時(shí)間:2023/12/10 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php网页表格样式,分享7款颜色的CSS表格样式美化网页表格用户体验 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

今天在瀏覽幾個(gè)海外前端博客時(shí)候,看到以下7款顏色CSS表格樣式的整理還是比較好的,尤其是需要在網(wǎng)頁中添加表格時(shí)候,看似簡單的樣式,但是在需要使用的時(shí)候就直接復(fù)制,節(jié)省很多時(shí)間。

第一種:

CSS表格樣式之一

CSS樣式代碼部分:

/* Border styles */

#table-1 thead, #table-1 tr {

border-top-width: 1px;

border-top-style: solid;

border-top-color: rgb(230, 189, 189);

}

#table-1 {

border-bottom-width: 1px;

border-bottom-style: solid;

border-bottom-color: rgb(230, 189, 189);

}

/* Padding and font style */

#table-1 td, #table-1 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

color: rgb(177, 106, 104);

}

/* Alternating background colors */

#table-1 tr:nth-child(even) {

background: rgb(238, 211, 210)

}

#table-1 tr:nth-child(odd) {

background: #FFF

}

第二種:

CSS表格樣式之二

CSS樣式代碼部分:

/* Border styles */

#table-2 thead, #table-2 tr {

border-top-width: 1px;

border-top-style: solid;

border-top-color: rgb(230, 189, 189);

}

#table-2 {

border-bottom-width: 1px;

border-bottom-style: solid;

border-bottom-color: rgb(230, 189, 189);

}

/* Padding and font style */

#table-2 td, #table-2 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

color: rgb(177, 106, 104);

}

/* Alternating background colors */

#table-2 tr:nth-child(even) {

background: rgb(238, 211, 210)

}

#table-2 tr:nth-child(odd) {

background: #FFF

}

第三種:

CSS表格樣式之三

CSS樣式代碼部分:

/* Border styles */

#table-3 thead, #table-3 tr {

border-top-width: 1px;

border-top-style: solid;

border-top-color: rgb(235, 242, 224);

}

#table-3 {

border-bottom-width: 1px;

border-bottom-style: solid;

border-bottom-color: rgb(235, 242, 224);

}

/* Padding and font style */

#table-3 td, #table-3 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

color: rgb(149, 170, 109);

}

/* Alternating background colors */

#table-3 tr:nth-child(even) {

background: rgb(230, 238, 214)

}

#table-3 tr:nth-child(odd) {

background: #FFF

}

第四種:

CSS表格樣式之四

CSS代碼樣式部分:

/* Border styles */

#table-4 thead, #table-4 tr {

border-top-width: 1px;

border-top-style: solid;

border-top-color: rgb(211, 202, 221);

}

#table-4 {

border-bottom-width: 1px;

border-bottom-style: solid;

border-bottom-color: rgb(211, 202, 221);

}

/* Padding and font style */

#table-4 td, #table-4 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

color: rgb(95, 74, 121);

}

/* Alternating background colors */

#table-4 tr:nth-child(even) {

background: rgb(223, 216, 232)

}

#table-4 tr:nth-child(odd) {

background: #FFF

}

第五種:

CSS表格樣式之五

CSS代碼樣式部分:

/* Table Head */

#table-5 thead th {

background-color: rgb(156, 186, 95);

color: #fff;

border-bottom-width: 0;

}

/* Column Style */

#table-5 td {

color: #000;

}

/* Heading and Column Style */

#table-5 tr, #table-5 th {

border-width: 1px;

border-style: solid;

border-color: rgb(156, 186, 95);

}

/* Padding and font style */

#table-5 td, #table-5 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

font-weight: bold;

}

第六種:

CSS表格樣式之六

CSS樣式代碼部分:

/* Table Head */

#table-6 thead th {

background-color: rgb(128, 102, 160);

color: #fff;

border-bottom-width: 0;

}

/* Column Style */

#table-6 td {

color: #000;

}

/* Heading and Column Style */

#table-6 tr, #table-6 th {

border-width: 1px;

border-style: solid;

border-color: rgb(128, 102, 160);

}

/* Padding and font style */

#table-6 td, #table-6 th {

padding: 5px 10px;

font-size: 12px;

font-family: Verdana;

font-weight: bold;

}

第七種:

CSS表格樣式之七

總結(jié)

以上是生活随笔為你收集整理的php网页表格样式,分享7款颜色的CSS表格样式美化网页表格用户体验的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

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