結構使うが手打ちするのが面倒臭いやつら!コピペ用…
文字の前後に挿入contentプロパティ
擬似セレクタ:beforeと:afterを使って
<small>文字</small>
<small class="クラス名">16進数</small>
前に★を挿入
文字
small:before{
content: "★";
}
後ろに16進数で挿入
16進数
small:after{
content: "\00273f";
}
↓nth-childと組み合わせたりすると良い
※IE7以下が未対応
※ソースに...