Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのコードを持っています:
<li class="eight" ><a href="#" >music</a></li>
しかし、単語が入っていない(空の)同じコードが欲しいのですが、音楽の単語を削除しても、liタグの幅は同じですが、それは可能ですか?または、liタグにスペース文字を入れるにはどうすればよいですか?ありがとう
.eight a { display: block; text-indent:-9999px; width:100px; }
text-indentを使用してテキストのオフセットを変更できます