CSSを使用して、次のようにリスト項目の箇条書きを<li>
テキストの上に置くことは可能ですか?
質問する
1127 次
1 に答える
4
箇条書きを背景画像として使用する:
ul {
list-style-type: none;
padding: 0;
text-align: center; /* Optional, Just for demo */
}
ul li {
background: url(path/to/bullet.ext) center top no-repeat;
display: inline-block; /* <-- display list items in one line */
padding-top: 10px; /* <-- Change this according to the image size */
/* Or: */
/* padding: 10px 5px 0; */
/* top r&l bottom */
}
于 2013-08-26T20:45:35.300 に答える