我有一個奇怪的問題,要麼我不知道<br/>
是如何工作的或者我在這裏丟失了一些東西。我的段落有24px的行高。我想在文本之間有一個換行符(空行),但是當我使用<br/>
標籤時,它會根據paint.net創建一個空行太多(36像素),所以我做錯了什麼?爲什麼<br>元素具有比行高更高的高度
不是換行符應該與行高屬性具有相同的高度嗎?如果是的話,爲什麼不這樣做,如果不是,那麼解決方案是什麼?
<p>
Greenfields Counselling and Psychotherapy is a counselling practice that lives and works out of the principles for counselling and psychotherapy as set down by Carl Rogers.
<br/>
<br/>
Counselling at Greenfields is strictly confidential and we understand that this can be a difficult time for you.
</p>
這裏是CSS:
p {
line-height: 24px;
}
以下是演示:http://contestlancer.com/greenFields/?page_id=41 看詞發生後的空間。
Ahmar。
Unre lated:[我需要在「」或「
」標記末尾加「/」嗎?](http://stackoverflow.com/questions/15149641/do-i-need-a-at-the-end -of-an-img-or-br-tag-etc) –
pleeeeeaaase,請不要鏈接到一個頁面讓我們查看那裏的問題,寫下示例代碼'INTO POST',因爲只要你修好了這在你的網站上(希望很快),這個問題對其他人將變得毫無用處。 – DrCopyPaste
好吧現在添加代碼@DrCopyPaste –