This is how i am trying but it does not work
The only thing is, it gets 100% width equal to table cell width but the height does not change. How can i make the entire table cell clickable?
Here what i do
click hereAnd this is inside my CSS file
.btn-full {
display: block;
width: 100%;
height: 100%;
}
The bootstrap version i use is v 3.3.6
I am testing with latest version chrome : Version 51.0.2704.106 m

解决方案
In your case, since other td in same row has more content, you need to make all your td contents as equal height. Below code should work for above issue.
td{overflow:hidden;}
.btn-full {
display: block;
width: 100%;
height: 100%;
margin:-1000px;
padding: 1000px;
}
本文介绍了一种方法,使得表格中的每个单元格可以被完全点击。通过调整CSS样式,包括设置溢出隐藏及按钮高度与宽度为100%,实现了无论单元格内容多少,都能使整个单元格区域响应点击事件。
1658

被折叠的 条评论
为什么被折叠?



