php 表单 漂亮css,3款精美漂亮的CSS3表格【实例演示#源码下载#】

本文介绍3款精美漂亮的CSS3表格,这3款表格特别适用于需要进行项目对比的价格表格。

7c2821a182ba5e482910c6b4abe7abc2.gif

漂亮的CSS3表格

实例1

35a8642195cf0008ac363f59f35c04fc.gif

实例1:漂亮的CSS3表格

完整HTML代码html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

beautiful CSS3 table

* {

margin: 0;

padding: 0;

}

body {

font-family: Georgia, serif;

font-size: 20px;

font-style: italic;

font-weight: normal;

letter-spacing: normal;

background: #f0f0f0;

}

#content {

background-color: #fff;

width: 750px;

padding: 40px;

margin: 0 auto;

border-left: 0px solid #1D81B6;

border-right: 0px solid #ddd;

-moz-box-shadow: 0px 0px 16px #aaa;

}

.head {

font-family: Helvetica, Arial, Verdana;

text-transform: uppercase;

font-weight: bold;

font-size: 12px;

font-style: normal;

letter-spacing: 3px;

color: #888;

border-bottom: 3px solid #f0f0f0;

padding-bottom: 10px;

margin-bottom: 10px;

}

.head a {

color: #1D81B6;

text-decoration: none;

float: right;

text-shadow: 1px 1px 1px #888;

}

.head a:hover {

color: #f0f0f0;

}

#content h1 {

font-family: "Trebuchet MS", sans-serif;

color: #1D81B6;

font-weight: normal;

font-style: normal;

font-size: 56px;

text-shadow: 1px 1px 1px #aaa;

}

#content h2 {

font-family: "Trebuchet MS", sans-serif;

font-size: 34px;

font-style: normal;

background-color: #f0f0f0;

margin: 40px 0px 30px -40px;

padding: 0px 40px;

clear: both;

float: left;

width: 100%;

color: #aaa;

text-shadow: 1px 1px 1px #fff;

}

/* Table 3 Style */

table.table3 {

font-family: Arial;

font-size: 18px;

font-style: normal;

font-weight: normal;

text-transform: uppercase;

letter-spacing: -1px;

line-height: 1.7em;

text-align: center;

border-collapse: collapse;

}

.table3 thead th {

padding: 6px 10px;

text-transform: uppercase;

color: #444;

font-weight: bold;

text-shadow: 1px 1px 1px #fff;

border-bottom: 5px solid #444;

}

.table3 thead th:empty {

background: transparent;

border: none;

}

.table3 thead:nth-child(2),

.table3 tfoot:nth-child(2) {

background-color: #7FD2FF;

}

.table3 tfoot:nth-child(2) {

-moz-border-radius: 0px 0px 0px 5px;

-webkit-border-bottom-left-radius: 5px;

border-bottom-left-radius: 5px;

}

.table3 thead:nth-child(2) {

-moz-border-radius: 5px 0px 0px 0px;

-webkit-border-top-left-radius: 5px;

border-top-left-radius: 5px;

}

.table3 thead:nth-child(3),

.table3 tfoot:nth-child(3) {

background-color: #45A8DF;

}

.table3 thead:nth-child(4),

.table3 tfoot:nth-child(4) {

background-color: #2388BF;

}

.table3 thead:nth-child(5),

.table3 tfoot:nth-child(5) {

background-color: #096A9F;

}

.table3 thead:nth-child(5) {

-moz-border-radius: 0px 5px 0px 0px;

-webkit-border-top-right-radius: 5px;

border-top-right-radius: 5px;

}

.table3 tfoot:nth-child(5) {

-moz-border-radius: 0px 0px 5px 0px;

-webkit-border-bottom-right-radius: 5px;

border-bottom-right-radius: 5px;

}

.table3 tfoot td {

font-size: 38px;

font-weight: bold;

padding: 15px 0px;

text-shadow: 1px 1px 1px #fff;

}

.table3 tbody td {

padding: 10px;

}

.table3 tbody tr:nth-child(4) td {

font-size: 26px;

font-weight: bold;

}

.table3 tbody td:nth-child(even) {

background-color: #444;

color: #444;

border-bottom: 1px solid #444;

background: -webkit-gradient( linear, left bottom, left top, color-stop(0.39, rgb(189, 189, 189)), color-stop(0.7, rgb(224, 224, 224)));

background: -moz-linear-gradient( center bottom, rgb(189, 189, 189) 39%, rgb(224, 224, 224) 70%);

text-shadow: 1px 1px 1px #fff;

}

.table3 tbody td:nth-child(odd) {

background-color: #555;

color: #f0f0f0;

border-bottom: 1px solid #444;

background: -webkit-gradient( linear, left bottom, left top, color-stop(0.39, rgb(85, 85, 85)), color-stop(0.7, rgb(105, 105, 105)));

background: -moz-linear-gradient( center bottom, rgb(85, 85, 85) 39%, rgb(105, 105, 105) 70%);

text-shadow: 1px 1px 1px #000;

}

.table3 tbody td:nth-last-child(1) {

border-right: 1px solid #222;

}

.table3 tbody th {

color: #696969;

text-align: right;

padding: 0px 10px;

border-right: 1px solid #aaa;

}

.table3 tbody span.check::before {

content: url(check2.png)

}

beautiful CSS3 table

Smart StarterSmart MediumSmart BusinessSmart Deluxe

Price per month$ 2.90$ 5.90$ 9.90$ 14.90Storage Space512 MB1 GB2 GB4 GBBandwidth50 GB100 GB150 GBUnlimitedMySQL DatabasesUnlimitedUnlimitedUnlimitedUnlimitedSetup19.90 $12.90 $freefreePHP 5 Ruby on Rails

代码分析

1、table的class需要与css的定义一致:table3或table2或table1。

2、表格头第一个th内容为空,其余th设置属性scope="col"。Smart StarterSmart MediumSmart BusinessSmart Deluxe

3、内容行第一列元素是th,其属性scope="row",其余列元素是td。

Storage Space512 MB1 GB2 GB4 GB

4、表脚行第一列元素是th,其属性scope="row",其余列元素是td。

Price per month$ 2.90$ 5.90$ 9.90$ 14.90

实例2

beed6504ec69a22441c8822a5e625487.gif

实例2:漂亮的CSS3表格

实例3

7c2821a182ba5e482910c6b4abe7abc2.gif

实例3:漂亮的CSS3表格

相关文章

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值