答案 0 :(得分:1)
border-left
属性应解决此问题。只需将你的行包裹在div中。
div {
border-left: 1px solid black;
padding-left: 10px;
}

<div>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
</div>
&#13;
答案 1 :(得分:1)
将它们放入包含border-left: 1px solid black;
JSFiddle:http://jsfiddle.net/1ofvajLa/
答案 2 :(得分:1)
您可以显示以下垂直线:
.test {
display: table-cell;
padding: 0 5px;
vertical-align: middle;
}
.test:last-child{
border-left:1px solid;
}
&#13;
<div>
<div class="test">
<p>Bar</p>
</div>
<div class="test">
<p>Text 1</p>
<p>Text 2</p>
<p>Text 3</p>
</div>
</div>
&#13;
<强> Working Fiddle 强>