li元素内的超链接

ONY*_*NYX 3 html css jquery

有没有办法将hyplerlink元素拉伸到里面的li元素的大小

<ul>
    <li><a href="#">this link to fill up the li element width and height</a><li>
</ul>
Run Code Online (Sandbox Code Playgroud)

小智 8

a {display: block; width: 100%;}
Run Code Online (Sandbox Code Playgroud)

这应该做到这一点.