How to wrap a table in a link?

前端 未结 4 1325
后悔当初
后悔当初 2021-01-22 20:02

What elements allow link?

I want to wrap a link around a table,


    
4条回答
is a block element. Block elements are not allowed in inline elements in xhtml. But what about a click listener on the table, or an div around the table? The effect should be the same.

This might be also interesting for you: Is it wrong to change a block element to inline with CSS if it contains another block element?

提交回复
热议问题