我的頁面上有一個ajax htmlextender。用它評論某些東西。當評論文字有「輸入」htmlextender給它< p>標籤。我在顯示評論時使用div。<p></p> div中的標記
<div style="background-color:#ff0000; width:95%;"><p>note line 1</p><p> note line 2</p></div>
<div style="background-color:#ff0000; width:95%; text-align: right; font-size: 11px;">Name Surname</div>
<div style="background-color:#ff0000; width:95%; text-align: right; font-size: 11px;">02.08.2012 10:04</div>
像這樣的輸出:
我如何清除空行?