开发者

Create li tag without and word in tag(empty)?

开发者 https://www.devze.com 2022-12-14 10:28 出处:网络
I have this code : <li class=\"eight\"><a href=\"#\" >music</a></li> but i want that have the same code without any word inside (empty) my mean is remove music word but stil

I have this code :

<li class="eight"  ><a href="#" >music</a></li>

but i want that have the same code without any word inside (empty) my mean is remove music word but still have the sa开发者_开发技巧me width of li tag,is it possible?,or better say that how can i put space character in li tag? thanks


.eight a {
    display: block;
    text-indent:-9999px;
    width:100px;
}

you can change the offset of your text with text-indent

0

精彩评论

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