开发者

Anchor in list elements not filling available space with display:block and height/width set to 100%

开发者 https://www.devze.com 2023-03-12 23:14 出处:网络
In the fiddle below i would like to the anchor elements to occupy all开发者_运维技巧 of the aviailable space of their parent li elements:

In the fiddle below i would like to the anchor elements to occupy all开发者_运维技巧 of the aviailable space of their parent li elements:

http://jsfiddle.net/nmxmT/

Can't see what i have done wrong :(


Put the padding on the a instead of the li and take the width off of the a.

http://jsfiddle.net/Gb38x/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号