废话不多说了,具体代码如下所示:
<!doctype html><html><head> <meta chart="utf-8"> <title>表格</title> <style type="text/css"> *{ margin: 0; padding: 0; } body{ font: italic 20px georgia, rif; letter-spacing: normal; background-color: #f0f0f0; } #content{ width: 750px; padding: 40px; margin: 0 auto; background-color: #fff; border-left: 30px solid #1d81b6; border-right: 1px solid #ddd; box-shadow: 0px 0px 16px #aaa; 狼心狗肺痣 } #table1{ font: bold 16px/1.4em "trebuchet ms", sans-rif; } #table1 thead th{ padding: 15px; border: 1px solid #93ce37; border-bottom: 3px solid #9ed92寒假什么时候放9; text-shadow: 1px 1px 1px #568f23; color: #fff; background-color: #9dd929; border-radius: 5px 5px 0px 0px; } #table1 thead th:empty{ background-color: transparent; border: none; } #table1 tbody th{ padding: 0px 10px; border: 1px solid #93ce37; border-right: 3px solid #9ed929; text-shadow: 1px 1px 1px #568f23; color: #666; background-color: #9dd929; border-radius: 5px 0px 0px 5px; } #table1 tbody td{ padding: 10px; border: 2p小学生蜡笔画x solid #e7efe0; text-align: center; text-shadow: 1px 1px 1px #fff; color: #666; background-color: #def3ca; border-radius: 2px; } #table1 tbody span.check::before{ content: url(images/check0.png); } #table1 tfoot td{ padding: 10px 0px; font-size: 32px; color: #9cd009; text-align: center; text-shadow: 1px 1px 1px #444; } </st锋格练字yle></head><body><div id="content"> <table id="table1"> <thead> <tr> <th></th> <th scope="col" abbr="starter">smart starter</th> <th scope="col" abbr="medium">smart medium</th> <th scope="col" abbr="business">smart business</th> <th scope="col" abbr="deluxe">smart deluxe</th> </tr> </thead> <tfoot> <tr> <th scope="row">price per month</th> <td>$ 2.90</td> <td>$ 5.90</td> <td>$ 9.90</td> <td>$ 14.90</td> </tr> </tfoot> <tbody> <tr> <th scope="row">storage space</th> <td>512mb</td> <td>1 gb</td> <td>2 gb</td> <td>4 gb</td> </tr> <tr> <th scope="row">bandwidth</th> <td>50 gb</td> <td>100 gb</td> <td>150 gb</td> <td>unlimited</td> </tr> <tr> <th scope="row">mysql databas</th> <td>unlimited</td> <td>unlimited</td> <td>unlimited</td> <td>unlimited</td> </tr> <tr> <th scope="row">tup</th> <td>12.90 ___fckpd___0lt;/td> <td>12.90 ___fckpd___0lt;/td> <td>free</td> <td>free</td> </tr> <tr> <th scope="row">php 5</th> <td><span class="check"></span></td> <td><span class="check"></span></td> <td><span class="check"></span></td> <td><span class="check"></span></td> 骨科排名</tr> <tr> <th scope="row">ruby on rails</th> <td><span class="check"></span></td> <td><span class="check"></span></td> <td><span class="check"></span></td> <td><span class="check"></span></td> </tr> </tbody> </table></div></body></html>
好了,代码到此介绍,完美表格效果就制作出来了。
本文发布于:2023-04-03 04:29:06,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/0e4e514bda4617218efb04ca43372017.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:HTML5制作表格样式.doc
本文 PDF 下载地址:HTML5制作表格样式.pdf
留言与评论(共有 0 条评论) |