dongyan4424 2011-10-25 16:44
浏览 88
已采纳

为什么Firefox没有显示两个BR的空间?

I'm working on this website and displaying posts from the database. I'm replacing the with <br/><br/>. Works as expected in Opera, Chrome and IE, but in Firefox, it only jump one line as if only one <br/> (but I looked at source code and has two).

I'm doing something wrong or Firefox is not working properly on this? I'm using Firefox 7.

The HTML generated. The double br are not displayed properly.

<span class='conteudo'>No dia 19 de novembro, a <strong>Brasilit</strong> irá realizar uma palestra promovendo o lançamento de suas novas linhas de telhas <strong>Colonial</strong>, <strong>Shingle</strong> e <strong>Top</strong> <strong>Steel</strong>.<br /><br />A palestra é voltada para os profissionais que atuam na área de coberturas.<br /><br />Maiores informações podem ser obtidas com os vendedores.</span>

  • 写回答

2条回答 默认 最新

  • dongtiao2976 2011-10-25 16:55
    关注

    At http://www.casaebase.com.br/css/default.css, the following declaration appears:

    .post .conteudo br {
        display: block; /* <-- Causes the issue at Firefox*/
        height: 1px;
    }
    

    This display property should be inline. An empty block element (ie, an element with display:block, without visible content) will be hidden in Firefox.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思