转载css截取td里面的内容 如何固定td th的宽度

源码:

!DOCTYPE html  
html lang="en"  
head  
    meta charset="UTF-8"  
    titleSzy1000/title  
    style  
        body{  
            background-color: #ccc;  
        }  
        td{  
            padding: 0 10px;  
            width: 40px;  
            height: 30px;  
            overflow: hidden;  
            text-overflow: ellipsis;  
            white-space: nowrap;  
        }  
    /style  
/head  
body  
    table style="border-collapse:collapse;table-layout:fixed;"  width="50%" border="1"  
        tbody  
            tr  
                th width="80px"编号/th  
                th内容/th  
            /tr  
            tr  
                td width="80px"12123121231/td  
                td12456/td  
            /tr  
        /tbody  
    /table  
/body  
/html  

转载 css截取td里面的内容 如何固定td th的宽度

原文地址:http://www.cnblogs.com/GIScore/p/7273050.html


最新回复(0)
/jishuAQ6utr3vUO24NIQmzD3Aalt55dZV6roty5w3hA_3D_3D4719256
8 简首页