我在 a 中有一个背景图像,<span>
并且无论段落的行数如何,我都试图集中参考文本的跨度。这是小提琴的链接
HTML:
<ul class="leftlist">
<li itemage="" id="1012" class="todo">
<a href="#">
<span class="uncheck_box cb"></span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vehicula lacus a nisi venenatis, sit amet tempor nunc mattis.</p>
</a>
</li>
</ul>
CSS:
ul.leftlist {
margin: 0 !important;
width: 595px;
}
.leftlist ol, ul {
list-style: none outside none;
padding: 0;
}
ol, ul {
list-style: none outside none;
padding: 0 20px;
}
ol, ul {
list-style: none outside none;
}
ul.leftlist li a {
border: 1px solid #999999;
display: block;
font-size: 17px;
min-height: 35px;
padding: 10px 5px;
text-decoration: none;
}
span.uncheck_box {
background: url("http://i39.tinypic.com/22dtvp.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
display: block;
float: left;
height: 28px;
margin: 4px 8px 10px;
width: 28px;
}