• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
不见花落
博客园    首页    新随笔    联系   管理    订阅  订阅
问题9:tabtle 整理

合并“行”单元格:

 <th colspan="2">Telephone</th>

合并“列”单元格:

<th rowspan="2">Telephone:</th>

单元格间隔:

<table cellspacing="0px">  

HTML-table:

<div class="listnr">
      <table class="tablelist">
        <tr>
            <th></th>
            <th></th>
            <th></th>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
      </table>
  </div>

CSS:

.tablelist{
  font:100% Arial, Helvetica, sans-serif; 
  width:100%;border-collapse:collapse;
  border:solid 1px #BEC1F5;
  background:#e5f1f4;

  
  
}

.tablelist td{
   font:100% Arial, Helvetica, sans-serif; 
   text-align:left;
   border:1px solid #fff;
   white-space: nowrap;
   font-size: 12px;
    line-height: 18px;
    color: #464646;
      padding:3px 6px 3px 4px;


}

.tablelist th{
   text-align:center;border:1px solid #fff;
   background:#328aa4 url(tr_back.gif) repeat-x;color:#fff;white-space: nowrap; 
     padding:3px 6px 3px 4px;
    }
.tablelist tr:hover   {background-color:#CFE3E8;}

 

posted on 2018-05-11 14:30  不见花落  阅读(144)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3