<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.main {
width: 300px;
border: 1px solid gray;
}
.title {
font-weight: bold;
vertical-align: top;
}
.content {
display: inline-block;
}
</style>
</head>
<body>
<div class="main">
<span class="title">标题:</span>
<span class="content">很多内容很多内容很多内容很多内容很多内容很多内容很多内容</span>
</div>
</body>
</html>
这种方法不会撑开 外层.main ,适合没有背景色的情况,如果要撑开,可选择左侧标题浮动,右侧渲染为block。