我想要多行文本像文本的單個塊一樣環繞,就像下面的「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