html5教程-今后输出表格之范例div表格

发布时间:2018-12-19 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了html5教程-今后输出表格之范例div表格脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="https://www.w3.org/1999/xhtml">  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>DIV+CSS表格效果</title>  
<style type="text/css">  
/**p 表格*/ 
.pTb{  www.2cto.com
    margin:10px; 
    width:501px;/*100*5+1*/ 
    list-style: none; 
 

.pTb ul,.pTb li{ 
    margin:0; 
    padding:0; 

.pTb li{ 
    float:left; 
    border-left:1px solid #ccc; 
    border-top:1px solid #ccc; 
    width: 99px;/*99px内空+1px外框*/ 
    height: 33px; 
    line-height: 33px; 
    text-align: center; 

.pTb li.r{ 
    border-right:1px solid #ccc; 

.pTb li.b{ 
    border-bottom:1px solid #ccc; 

/**E p 表格*/ 
</style>  
</head>  
 
<body>  
 
<ul class="pTb"> 
    <li>111</li> 
    <li>112</li>     
    <li>113</li>     
    <li>114</li> 
    <li class="r">11r</li> 
    <li>111</li> 
    <li>112</li> 
    <li>113</li> 
    <li>112</li> 
    <li class="r">11r</li> 
 
    <li class="b">生活更美好</li>  
<li class="b"></li>  
<li class="b"></li>  
<li class="b"></li>  
<li class="b r">11</li>  
</ul> 
</body>  
</html>  
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="https://www.w3.org/1999/xhtml">  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>DIV+CSS表格效果</title>  
<style type="text/css">  
/**p 表格*/ 
.pTb{  www.2cto.com
    margin:10px; 
    width:501px;/*100*5+1*/ 
    list-style: none; 
 

.pTb ul,.pTb li{ 
    margin:0; 
    padding:0; 

.pTb li{ 
    float:left; 
    border-left:1px solid #ccc; 
    border-top:1px solid #ccc; 
    width: 99px;/*99px内空+1px外框*/ 
    height: 33px; 
    line-height: 33px; 
    text-align: center; 

.pTb li.r{ 
    border-right:1px solid #ccc; 

.pTb li.b{ 
    border-bottom:1px solid #ccc; 

/**E p 表格*/ 
</style>  
</head>  
 
<body>  
 
<ul class="pTb"> 
    <li>111</li> 
    <li>112</li>     
    <li>113</li>     
    <li>114</li> 
    <li class="r">11r</li> 
    <li>111</li> 
    <li>112</li> 
    <li>113</li> 
    <li>112</li> 
    <li class="r">11r</li> 
 
    <li class="b">生活更美好</li>  
<li class="b"></li>  
<li class="b"></li>  
<li class="b"></li>  
<li class="b r">11</li>  
</ul> 
</body>  
</html>  

觉得可用,就经常来吧! 脚本宝典 欢迎评论哦! html5教程,巧夺天工,精雕玉琢。小宝典献丑了!

脚本宝典总结

以上是脚本宝典为你收集整理的html5教程-今后输出表格之范例div表格全部内容,希望文章能够帮你解决html5教程-今后输出表格之范例div表格所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:CSSHTML