不推荐用div、span去替代table,我这里情况复杂,被搞得没办法才出这晕招。

          
            .fake_table {
                position: relative;
                width:500px;
                height:100px;
                border-top:1px solid #afe0ea;
                border-left:1px solid #afe0ea;
                background: #daf5ff;
                overflow: hidden;
            }
            .fake_tbody {
                position: absolute;
                top:0px;
                left:0px;
                width:500px;
                height:100px;
            }
            .fake_tr {
                display:block;
                position: relative;
                text-decoration: none;
                height:20px;
            }

            .fake_tr:hover {
                background: #ffe499;
            }
            .fake_tr:hover span{
                color:#666;
            }
            .fake_td{
                position: absolute;
                display:inline-block;
                width:99px;
                height:19px;
                line-height: 19px;
                color:#000;
                border-bottom: 1px solid #afe0ea;
                border-right: 1px solid #afe0ea;
                text-align: center;
            }

相关文章:

  • 2022-02-21
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-12-05
  • 2021-12-06
  • 2021-07-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2021-07-07
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案