<strike id="3tkic"><sup id="3tkic"></sup></strike>

  1. <ul id="3tkic"></ul>
      <b id="3tkic"><legend id="3tkic"></legend></b>
      <b id="3tkic"><meter id="3tkic"></meter></b>

    • <strike id="3tkic"></strike>

      <blockquote id="3tkic"></blockquote>

    • 亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l

      table 鼠標(biāo)移上去改變單元格邊框顏色。

      2016/11/11 8:49:07   閱讀:1777    發(fā)布者:1777

      表格定義了border-collapse:collapse;邊框會(huì)合并為一個(gè)單一的邊框。
      會(huì)忽略 border-spacing 和 empty-cells 屬性。

      用td:hover,顯示不全

      搜索了好久,沒有找到好的方法,用左右邊框也不完美。

      于是就在想,移上去的時(shí)候給加個(gè)偽元素after,絕對(duì)定位。

      定義和用法

      :after 偽元素在元素之后添加內(nèi)容。

      這個(gè)偽元素允許創(chuàng)作人員在元素內(nèi)容的最后面插入生成內(nèi)容。默認(rèn)地,
      這個(gè)偽元素是行內(nèi)元素,不過(guò)可以使用屬性 display 改變這一點(diǎn)。

      注釋:如果已規(guī)定 !DOCTYPE,那么 Internet Explorer 8
      (以及更高版本)支持 content 屬性。

      <!DOCTYPE html> 
      <html> 
      <head> 
      <meta charset="utf-8"> 
      <title>border-hover</title> 
      <style type="text/css"> 
      .w1000{width:1000px;margin:0 auto;} 
      .table{width:100%;border-collapse:collapse;text-align:center;font-size:14px;} 
      .table tr th{border: 1px solid #d9dbda;padding:5px 0;} 
      .table tr td{border: 1px solid #d9dbda;} 
      .height2{height:61px;line-height:61px;} 
      .height1{height:30px;line-height:30px;} 
      .table tr td:hover .list-div{position:relative;} 
      .table tr td:hover .list-div:after{ 
          content: ""; 
          height: 100%; 
          left: -1px; 
          position: absolute; 
          top: -1px; 
          width: 100%; 
          z-index: 100; 
      } 
      .table tr td.list01-td:hover .list-div:after{ 
          border: 1px solid #b1bac6; 
      } 
      .table tr td.list02-td:hover .list-div:after{ 
          border: 1px solid #76ca5a; 
      } 
      .table tr td.list03-td:hover .list-div:after{ 
          border: 1px solid #ff9600; 
      } 
      </style> 
      </head> 
      <body> 
          <div class="w1000"> 
              <table class="table" cellpadding="0" cellspacing="0" > 
                  <thead> 
                      <tr> 
                          <th>周一</th> 
                          <th>周二</th> 
                          <th>周三</th> 
                          <th>周四</th> 
                          <th>周五</th> 
                          <th>周六</th> 
                          <th>周日</th> 
                      </tr> 
                  </thead> 
                  <tbody> 
                      <tr> 
                          <td rowspan="2" class="list01-td"><div class="list-div height2">星期</div></td> 
                          <td colspan="5" class="list02-td" ><div class="list-div height1">星期</div></td> 
                          <td></td> 
                      </tr> 
                      <tr> 
                          <td class="list02-td"><div class="list-div height1">星期</div></td> 
                          <td colspan="4"></td> 
                          <td></td> 
                      </tr> 
                      <tr> 
                          <td colspan="3"></td> 
                          <td colspan="2" class="list03-td"><div class="list-div height1">星期</div></td> 
                          <td colspan="2"></td> 
                      </tr> 
                  </tbody> 
              </table> 
          </div> 
      </body> 
      </html>

      顯示:

      提醒:

      1.開始做的時(shí)候沒做合并列的,合并行的簡(jiǎn)單點(diǎn)不需要加高度。

      亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l
      <strike id="3tkic"><sup id="3tkic"></sup></strike>

      1. <ul id="3tkic"></ul>
          <b id="3tkic"><legend id="3tkic"></legend></b>
          <b id="3tkic"><meter id="3tkic"></meter></b>

        • <strike id="3tkic"></strike>

          <blockquote id="3tkic"></blockquote>

        • 金沙县| 湄潭县| 安龙县| 隆林| 获嘉县| 和顺县| 沙河市| 新干县| 梨树县| 留坝县| 宣武区| 蒲城县| 新化县| 高阳县| 永清县| 平原县| 灵璧县| 吴忠市| 四子王旗| 丰顺县| 会泽县| 墨江| 成武县| 九台市| 阜宁县| 肇东市| 内江市| 恩施市| 壶关县| 大方县| 溧阳市| 留坝县| 乌兰察布市| 通州市| 大足县| 小金县| 繁峙县| 晋城| 福鼎市| 格尔木市| 泰和县|