如何删除之前的空间

时间:2016-11-01 03:30:23

标签: html css

我有一个页脚,其中包含两个关于地址和手机的信息,如下

enter image description here

对于地址(顶部)我在其中使用<p><br/>以及我正在使用<span>和{{1}的电话部分(底部) }属性,这是我的HTML

display: block;

我在<div class="information"> <div class="informationAddresses"> <p> TANOBEL FOOD <br> PT. Sariguna Primatirta <br> Jl. A. Yani 41-43 <br> Gedangan, Sidoarjo </p> </div> <div class="informationContact"> <span>Call Center <a href="tel:+628001112536">0800 111 2536</a></span> <span>Hotline <a href="tel:+623170109110">(031) 701 09 110</a></span> <span>SMS <a href="tel:+6277850800033">+6277 85080 0033</a></span> <span><a href="mailto:customer@tanobelfood.com">customer@tanobelfood.com</a></span> </div> </div> 标记内的<br/>有问题,它在返回下一行之前有空格。我可以用CSS删除它,还是应该使用其他标签?

谢谢你,对不起我的英文

1 个答案:

答案 0 :(得分:4)

试试这个: -

<div style="white-space:pre-line">
相关问题