테이블을 사용하지 않고 "소스"& "DEC"필드와 같이 한 줄의 텍스트처럼 한 줄 이상 감싸는 텍스트를 사용하고 싶습니다.인라인 블록 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>
작동하지 않는 기능은 무엇입니까? –
@Pekka : 클래스 "cc"아래의 텍스트를 "소스"와 같은 줄에서 시작하겠습니다. 랩을 할 때 "Source"라는 텍스트 아래에 랩핑하지 말아야합니다. – itsbalur
정말 저에게 테이블처럼 보입니다. 테이블 또는 적어도 정의 목록의 문제점은 무엇입니까? – RoToRa