我正在尝试将“Flavor One”文本对齐用于列表项目符号的图像中间(请参阅下面的CSS)。目前它处于最底层。
我尝试过垂直对齐,行高,但没有任何效果。
http://codepen.io/pares101/pen/NpWdPP
HTML
<ul class="flavors">
<li class="tan sp flavor-size">
Flavor one
</li>
<li class="tan sp flavor-size">
Flavor One
</li>
<li class="tan sp flavor-size">
Flavor One
</li>
</ul>
CSS
ul {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAABFCAYAAAAB8xWyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxODZCNTlGRkYyMDMxMUU2OUQzQkFEMEFENkM4QTcwNyIgeG1wTU06RG9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2lUMsPO8Mw3ojpwGpYOm9S/vqPkDJjKaCM1YV2SMbQfqpfteH/VM0oXxJ5xKOEHHq+kM5YUw1CBbLnLQ9HaLK4ZiHjeJkSlPw1EthlDug8JOay9bxSSBooVi0DSQz7DOm61AfbS0RE3U6tRHpomxfnClCbprjW4F9FeG0xzvuli6NsAna6Bo5FPkcfHW16AZL8hEa0gbNuaNrrZIrW0LzSJzK1zJlFsmDHkomLcQ8Ajk17jgYT9fbddKpZBAjLWcsBrcK76lY+KWXulWgKFS4hNJfuEVCKJusJzzFoIzCwTIe86xiMbU3+dW2d5Ix+WHew9Y3/e03O2UZfJW4WLfhLjfdPNc43Jkxu5/ZEUiZ3HW4WZhz64UmbvQNUrV/RBbHlHaHe5vtme11vFKVUSVqbGDRNhXyBwGUfE+1jnZMpbRg+TwnbVvMKGac/d3bS1dDflStyHF/N5Tp7ke0u1C7UGiojAZ9BjWENHCo+Idnm17uytCDwild6z5NZXHi6Wx+5TD0Mz4ktoJsJwwoXdjxi+NE1rkF47VqziZ/DWXIaNwIQ4nrFoEq06d01b0mtQznZMOWvsbuncyh8Dz2XYiGGYcoUPpgDPfcAkmap4SSAfb5Vi2AgIjMWbwORZ4plXWBu8Nqu3SjNM33rcwzDdemiqTZmDKNkty1ulGsa3Tso69KlN5pAeRDbKVdRbpRrmVAK6HsmzvI82uD6GUcRbpRum843rlwVMAKp5YBKV4a2FGOZSAqzhqKifO1R1rQxvLaql52wrTDeE0kzG9mE17kwttq9YKN+IoNqUgIDDaQ2nZ2qG3vws3lqox8ZckKCeUdGgmscNobK9tVCPpZUATyNNYDLScGV7aykey1MC3O+gL0GZ3lqKx/KUANOusr21NI+9IqXuNeZyx3m9tTSPTSgBnpSUyAn/CI/lq2bh9Rn/P9awcVjGv3EUf3IAsS9Rdcr6fZn/BRgAGrkBYRS4znkAAAAASUVORK5CYII=')
}
答案 0 :(得分:2)
不是将图像指定为list-style-image
,而是使用li
元素上的背景图像。这将为您提供理想的结果,而不会让您头疼。
ul {
list-style-type: none; /* Hide the default list styles */
}
ul li {
min-height: 70px; /* line-height and min-height should be equal */
line-height: 70px; /* because it creates vertical alignment of image and text */
padding-left: 100px; /* The distance from the background-image to the text */
margin-bottom:50px; /* The vertical spacing between each li element */
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAABFCAYAAAAB8xWyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxODZCNTlGRkYyMDMxMUU2OUQzQkFEMEFENkM4QTcwNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxODZCNUEwMEYyMDMxMUU2OUQzQkFEMEFENkM4QTcwNyI+IDx4bXBNTTpE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LQ9HaLK4ZiHjeJkSlPw1EthlDug8JOay9bxSSBooVi0DSQz7DOm61AfbS0RE3U6tRHpomxfnClCbprjW4F9FeG0xzvuli6NsAna6Bo5FPkcfHW16AZL8hEa0gbNuaNrrZIrW0LzSJzK1zJlFsmDHkomLcQ8Ajk17jgYT9fbddKpZBAjLWcsBrcK76lY+KWXulWgKFS4hNJfuEVCKJusJzzFoIzCwTIe86xiMbU3+dW2d5Ix+WHew9Y3/e03O2UZfJW4WLfhLjfdPNc43Jkxu5/ZEUiZ3HW4WZhz64UmbvQNUrV/RBbHlHaHe5vtme11vFKVUSVqbGDRNhXyBwGUfE+1jnZMpbRg+TwnbVvMKGac/d3bS1dDflStyHF/N5Tp7ke0u1C7UGiojAZ9BjWENHCo+Idnm17uytCDwild6z5NZXHi6Wx+5TD0Mz4ktoJsJwwoXdjxi+NE1rkF47VqziZ/DWXIaNwIQ4nrFoEq06d01b0mtQznZMOWvsbuncyh8Dz2XYiGGYcoUPpgDPfcAkmap4SSAfb5Vi2AgIjMWbwORZ4plXWBu8Nqu3SjNM33rcwzDdemiqTZmDKNkty1ulGsa3Tso69KlN5pAeRDbKVdRbpRrmVAK6HsmzvI82uD6GUcRbpRum843rlwVMAKp5YBKV4a2FGOZSAqzhqKifO1R1rQxvLaql52wrTDeE0kzG9mE17kwttq9YKN+IoNqUgIDDaQ2nZ2qG3vws3lqox8ZckKCeUdGgmscNobK9tVCPpZUATyNNYDLScGV7aykey1MC3O+gL0GZ3lqKx/KUANOusr21NI+9IqXuNeZyx3m9tTSPTSgBnpSUyAn/CI/lq2bh9Rn/P9awcVjGv3EUf3IAsS9Rdcr6fZn/BRgAGrkBYRS4znkAAAAASUVORK5CYII=') no-repeat top left;
}
&#13;
<ul>
<li>Flavor one</li>
<li>Flavor two</li>
<li>Flavor three</li>
</ul>
&#13;
答案 1 :(得分:2)
list-style-image不是很好的解决方案......试试这个
.flavors li {
list-style-type: none;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.flavors li:before {
content: '';
display: block;
margin-right: 10px;
width: 54px;
height: 69px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAABFCAYAAAAB8xWyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxODZCNTlGRkYyMDMxMUU2OUQzQkFEMEFENkM4QTcwNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxODZCNUEwMEYyMDMxMUU2OUQzQkFEMEFENkM4QTcwNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIwOTMzQTAwRjIwMTExRTY5RDNCQUQwQUQ2QzhBNz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na6Bo5FPkcfHW16AZL8hEa0gbNuaNrrZIrW0LzSJzK1zJlFsmDHkomLcQ8Ajk17jgYT9fbddKpZBAjLWcsBrcK76lY+KWXulWgKFS4hNJfuEVCKJusJzzFoIzCwTIe86xiMbU3+dW2d5Ix+WHew9Y3/e03O2UZfJW4WLfhLjfdPNc43Jkxu5/ZEUiZ3HW4WZhz64UmbvQNUrV/RBbHlHaHe5vtme11vFKVUSVqbGDRNhXyBwGUfE+1jnZMpbRg+TwnbVvMKGac/d3bS1dDflStyHF/N5Tp7ke0u1C7UGiojAZ9BjWENHCo+Idnm17uytCDwild6z5NZXHi6Wx+5TD0Mz4ktoJsJwwoXdjxi+NE1rkF47VqziZ/DWXIaNwIQ4nrFoEq06d01b0mtQznZMOWvsbuncyh8Dz2XYiGGYcoUPpgDPfcAkmap4SSAfb5Vi2AgIjMWbwORZ4plXWBu8Nqu3SjNM33rcwzDdemiqTZmDKNkty1ulGsa3Tso69KlN5pAeRDbKVdRbpRrmVAK6HsmzvI82uD6GUcRbpRum843rlwVMAKp5YBKV4a2FGOZSAqzhqKifO1R1rQxvLaql52wrTDeE0kzG9mE17kwttq9YKN+IoNqUgIDDaQ2nZ2qG3vws3lqox8ZckKCeUdGgmscNobK9tVCPpZUATyNNYDLScGV7aykey1MC3O+gL0GZ3lqKx/KUANOusr21NI+9IqXuNeZyx3m9tTSPTSgBnpSUyAn/CI/lq2bh9Rn/P9awcVjGv3EUf3IAsS9Rdcr6fZn/BRgAGrkBYRS4znkAAAAASUVORK5CYII=)
}
<ul class="flavors">
<li class="tan sp flavor-size">
Flavor one
</li>
<li class="tan sp flavor-size">
Flavor One
</li>
<li class="tan sp flavor-size">
Flavor One
</li>
</ul>
jsFiddle - https://jsfiddle.net/grinmax_/8w5y7mee/