我有一个响应表。我唯一的问题是如何控制单元格的宽度和高度,因为在移动视图中单元格被合并
这是我的小提琴
http://jsfiddle.net/cancerian73/PCtQj/embedded/result/
尝试将浏览器窗口缩小到移动视图,您可以看到随附的屏幕截图:
/*
Label the data
*/
td:nth-of-type(1):before {
content:"Products";
}
td:nth-of-type(2):before {
content:"Indication";
}
td:nth-of-type(3):before {
content:"Target";
}
td:nth-of-type(4):before {
content:"Preclinical Research - IN-VIVO";
}
td:nth-of-type(5):before {
content:"Preclinical Research - IN-TOXICOLOGY";
width:auto;
word-wrap:break-word;
height:auto !important
}
td:nth-of-type(6):before {
content:"Preclinical Research - IN-VITRO";
}
td:nth-of-type(7):before {
content:"Studies for Early Patient Data";
}
}