4
私はただこのイメージを使用することはできますが、正しい人の心は本当に望んでいますか?コンテンツのラッピングを回避する:セレクタの内容の前に
リスト項目プレフィックスの色を順序付けられていないリストで変更するためのきれいな方法を見つけようとしています。
:before
セレクタを使用すると、これを簡単に行うことができます。 (そう、私はie7について知っている、幸い私はそれは問題ではない)。
.ul1 li
{
list-style-type:none;
}
.ul1 li:before, .ol1 li:before
{
content:"\25CF"; /*escaped unicode coloured circle*/
color:#F68A39;
font-weight:bold;
font-size:18px;
text-align:right;
padding-right:6px;
width:10px;
}
私が持っている問題は、私のリスト項目の内容は今:before
コンテンツを包むだろうということです。これを防ぐ方法はありますか?
ここから始まるマークアップがあります。乾杯!
<ul class="ul1">
<li>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has survived
not only
</li>
<li>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has survived
not only
</li>
<li>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has survived
not only
</li>
<li>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has survived
not only
</li>
</ul>
鮮明な回答!それほどありがとうございました。 –