I\'m using Bootstrap and the following doesn\'t work:
Blah Blah
-
You could include an anchor inside every , like so:
Blah Blah
1234567
more text
You could then use display:block;
on the anchors to make the full row clickable.
tr:hover {
background: red;
}
td a {
display: block;
border: 1px solid black;
padding: 16px;
}
Example jsFiddle here.
This is probably about as optimum as you're going to get it unless you resort to JavaScript.
- 热议问题