ホームページ > 記事 > ウェブフロントエンド > CSS ul li 背景画像とテキストの配置_html/css_WEB-ITnose
f4dc3bf4ab497271d3ecf31c2bc11a74
c1a436a314ed609750bd7c7d319db4da電子商取引2e9b454fa8428549ca2e64dfac4625cd
2a549a3de14bfadc055d9de61a28b17c
ff6d136ddc5fdfeffaf53ff6ee95f185
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32便利な注文管理 15db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32便利な注文管理 2< ;bed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32便利な注文管理 35db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6b5a63eb323562bbd99b282e6a2c94492便利注文管理 45db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32便利な注文管理 55db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
e851e68e1ea96281bb2e840774ee22de
1 2 3 .four { 4 width: 336px; 5 height: 200px; 6 background: #eee; 7 float: left; 8 margin: 5px; 9 }10 11 .four img {12 height:120px;13 float: left;14 margin-left:10px;15 padding:6px;16 background:darkgray;17 }18 19 .four ul { 20 float: left;21 }22 23 .four li {24 background:url(./images/black.png) center left no-repeat ;25 height:15px;26 margin:10px;27 background-size:3px;28 padding-left:10px;29 font:12px/15px "黑体";30 31 }32 33 .four a {34 }35 36 .four a:visited {37 color:gray;38 }39 40 .four h2 {41 margin:6px 0 6px 10px;42 font-size:16px;43 }44 45
dc6dce4a544fdca2df29d5ac0ea9906b
15b86f027c2175d1a62b5fd7fd385c0e
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条4a11e5928b3688cf38c9163b657eb5ac2867e861ba23559b572f230426ab14ea
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条5db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条5db79b134e9f6b82c0b36e0489ee08ed4c607ccbe972a9abff0002f601f84969
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条5db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条5db79b134e9f6b82c0b36e0489ee08ed ;bed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32第 1 条5db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6b5a63eb323562bbd99b282e6a2c94492第 1 条16ef26f8b7ea0fc89bdf90e275a93e5dbed06894275b65c1ab86501b08a632eb
929d1f5ca49e04fdcb27f9465b944689
16b28748ea4df4d9c2150843fecfba68
1 #art { 2 background:#EEE; 3 margin-top:3px; 4 padding-top:10px; 5 } 6 7 #art li { 8 height:30px; 9 /*border:1px green solid;*/10 }11 12 #art a {13 margin-left:5px;14 display:block;15 background:url(./images/Art_li.png) no-repeat left;16 background-size:5px;17 height:30px;18 padding-left:20px;19 font:16px/30px "simsum";20 21 }22 23 #art a:hover {24 background:url(./images/7.jpg);25 /*background:url(./images/33.png) no-repeat left ;*/26 text-decoration:none;27 }
Firefox は li の高さを使用し、IE は a タグの高さ
9010e6f25f1ea9a038858bb52d2c552f
447676c97b79050ab03d07e10ce8055d
9e490bea09a82f3ff6663081fb0e947b
e99154396dac63cf45c677ecf72df8a3ナビゲーション 15db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32ナビゲーション 25db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
< liee7959cc8dd4be16ef633321c03dac32ナビゲーション 35db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32ナビゲーション 45db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
0d9f769af7423fe37c4ef36b94af51e0ナビゲーション 55db79b134e9f6b82c0b36e0489ee08edbed06894275b65c1ab86501b08a632eb
25edfb22a4f469ecb59f1190150159c6ee7959cc8dd4be16ef633321c03dac32ナビゲーション 65db79b134e9f6b82c0b36e0489ee08ed