2014-03-27 37 views

回答

0
table { 
    table-layout: fixed; 
    word-wrap: break-word; 
} 
+0

谢谢你的答案。我试图使用它,但看看http://jsbin.com/dorehewo/3。我没有想法解决这个问题 – pr0metheus

+0

表格布局是很好的选择,但我怎么能为TH设置静态宽度。例如:http://jsbin.com/dorehewo/10 - >左边的背景应该有5px的宽度 – pr0metheus

0
table{ 
    width: px; 
    height: px; 
} 

table tr{ 
    width: px; 
    height: px; 
} 

table tr td{ 
    width: px; 
    height: px; 
} 
1

抱歉,我不得不清理你的代码一点点,因为我无法读取,但ID只能使用一次,你有两个表,所以你想使一个类不是一个ID,当我做了,表似乎是相同的大小这里是一个链接:http://jsbin.com/dorehewo/7/edit?html,css,output