我想要多行文本像文本的单个块一样环绕,就像下面的“Source”&“DEC”字段一样,不需要使用表格。inline-block css
我想我应该可以使用内联块来获得这个工作,但没有成功。
下面是简单的HTML我的工作:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="head">
<title></title>
<style type="text/css">
.tt { color: #7777cc; width:85px; }
.cc { display: inline-block; }
</style>
</head>
<body>
<div class="g1">
<div class="expandable">
<span class="tt">Source </span><span class="cc">Neutron energy was varied by changing the
emission angle to the deuteron beam. The activities of the "2"3"7U and "2"3"1Th
residual nuclei were measured by a Ge(Li) and a HP Ge gamma-spectrometer, respectively.</span>
</div>
</div>
</body>
</html>
什么不起作用? – 2011-05-02 12:29:28
@Pekka:我想让类“cc”下的文本与“Source”同一行开始。当它包裹时,它应该包裹在自身之下,而不是包装在“来源”文本下 – itsbalur 2011-05-02 12:31:50
对我来说,这看起来真像一张桌子。一张桌子有什么问题 - 或者至少是一个定义列表? – RoToRa 2011-05-02 12:33:58