1

我有带有文本 div 的 html 页面我希望在页面加载时应该逐行显示文本。我尝试了很多教程但没有得到如何做到这一点

我已经编辑了代码,现在它工作正常,但它会在幻灯片中的所有文本上出现一次,我希望在每个 div 文本之后休息一下。

               <div class="text_paragraph">
                <marquee direction="down" behavior="slide">

                <p>Bovine Respiratory Disease (BRD) is the leading cause of economic loss in the beef industry. <small>1, 2</small>
                    </p>
                 </marquee>
            </div>
            <div class="text_paragraph_1">
                <marquee direction="down" behavior="slide">

                <b>Economic loss:</b>
                <ul><li>Costs the industry an estimated $1 billion each year. <small>3, 4</small></li>
                    <li>Losses can be attributed to death, reduced feed and treatment costs.<small>3,4</small></li>
                    <li>Economic losses range from an estimated $57.48 to $239.69 per head. <small>1, 2</small></li>
                </ul>

            </marquee>        
            </div>
            <div class="text_paragraph_2">
                <marquee direction="down" behavior="slide">

                <b>Bacterial Culprits:</b>
                <p>Four bacterial pathogens are commonly associated with BRD. </p>
                <ul><li>Mannheimia haemolytica</li>
                    <li>Pasteurella multocida</li>
                    <li>Histophilus somni</li>
                    <li>Mycoplasma bovis </li></ul>
                    </marquee>

            </div>
4

1 回答 1

1

使用 break 标记,因为 break 标记插入一个换行符。

   <br/>
于 2012-04-24T09:19:44.183 回答