Code:
<style>
div {
width: 500px;
}
ul {
list-style-type: none;
line-height: 1.25em;
}
ul > li {
position: relative;
}
ul > li:before {
content: "\2022";
position: absolute;
font-weight: bold;
font-size: 30px;
line-height: inherit;
left: -0.75em;
}
</style>
<div>
<span style="float:right"><a href="http://google.com">Test link</a><br/>
<a href="http://google.com">Test link</a><br/>
<a href="http://google.com">Test link</a><br/>
<a href="http://google.com">Test link</a><br/>
<a href="http://google.com">Test link</a></span>
<ul>
<li>The <a href="http://google.com">glowing steel</a> is extremely hot and will harm anyone that touches it. Jumping into the slag bucket is an instant death, regardless of [[Damage Threshold]].</li>
<li>The ''"Lucky 38 Executive Override"'' option on the terminal on the second level was originally supposed to be part of the quest [[The Moon Comes Over the Tower]], but that section was cut. See that quest's notes section for details.</li>
<li>The three Mr. Steels found inside, as well as the fiends, respawn every three game days.</li>
</ul>
</div>
到目前为止,我想出了一些劣质的解决方案:
- 使所有浮动元素的
position:relative
和z-index:1
:显然不是一个好的通用解决方案。 ul
元素的overflow:hidden
:链接可访问,但列表元素停止围绕在浮动元素周围。li
元素的overflow:hidden
:链接可访问,列表元素围绕浮动元素包裹。但是,:before
内容变得不可见。li
元素的z-index:-1
:在交换具有访问性的浮动链接和列表中不可访问的链接之间进行选择。
:link
元素添加position:relative
和z-index:1
。显然并不理想,但我认为它是目前缺点最小的解决方案。
display:inline-block
实现浮动效果? - Slider2k