选框不能在Firefox中正常工作 [英] Marquee not working right in firefox

查看:120
本文介绍了选框不能在Firefox中正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是选取框,它在Chrome中运行良好,但是在Firefox中,它只是一次又一次地显示第一个div。以下是代码:

 < marquee direction =upscrollamount =3> 
< div class =eachnews>

< a href =#> < div class =news-date>< span class =day_news> 15< / span>< span class =month_news> Apr< / span>
< / div>
< div class =news-descript>< h2>新闻标题< / h2>
< p>
Lorem Ipsum只是印刷和排版行业的虚拟文本。 Lorem Ipsum自从16世纪以来一直是业界标准的虚拟文本,当时一台未知的打印机采用了一种类型的厨房,并将其制作成型号样本。
< / p>
< / div>< / a>
< / div>


< div class =eachnews>

< a href =#> < div class =news-date>< span class =day_news> 16< / span>< span class =month_news> Jan< / span>
< / div>
< div class =news-descript>< h2>新闻标题< / h2>
< p>
Lorem Ipsum只是印刷和排版行业的虚拟文本。 Lorem Ipsum自从16世纪以来一直是业界标准的虚拟文本,当时一台未知的打印机采用了一种类型的厨房,并将其制作成型号样本。
< / p>
< / div>< / a>
< / div>



< div class =eachnews>

< a href =#> < div class =news-date>< span class =day_news> 17< / span>< span class =month_news> 10月< / span>
< / div>
< div class =news-descript>< h2>新闻标题< / h2>
< p>
Lorem Ipsum只是印刷和排版行业的虚拟文本。 Lorem Ipsum自从16世纪以来一直是业界标准的虚拟文本,当时一台未知的打印机采用了一种类型的厨房,并将其制作成型号样本。
< / p>
< / div>< / a>
< / div>


< div class =eachnews>

< a href =#> < div class =news-date>< span class =day_news> 18< / span>< span class =month_news> Mar< / span>
< / div>
< div class =news-descript>< h2>新闻标题< / h2>
< p>
Lorem Ipsum只是印刷和排版行业的虚拟文本。 Lorem Ipsum自从16世纪以来一直是业界标准的虚拟文本,当时一台未知的打印机采用了一种类型的厨房,并将其制作成型号样本。
< / p>
< / div>< / a>
< / div>

< / marquee>

写入15 apr的div只是在ff中重复自己,在chrome所有div骑行很好。请帮忙解决方案

跑马灯和眨眼不是标准配置,许多新浏览器不再支持,包括FF和IE版本。抱歉。



然而你可以使用javascript来模拟/重新实现它们,如果你真的必须。




I am using a marquee, it's going fine in chrome, but in firefox it shows only the first div again and again. Here's the code :

<marquee direction="up" scrollamount="3">           
     <div class="eachnews">

    <a href="#"> <div class="news-date"><span class="day_news">15</span><span class="month_news">Apr</span>
     </div>
     <div class="news-descript"><h2>News Title</h2>
     <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
     </p>
     </div></a>
     </div>


         <div class="eachnews">

    <a href="#"> <div class="news-date"><span class="day_news">16</span><span class="month_news">Jan</span>
     </div>
     <div class="news-descript"><h2>News Title</h2>
     <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
     </p>
     </div></a>
     </div>



         <div class="eachnews">

    <a href="#"> <div class="news-date"><span class="day_news">17</span><span class="month_news">Oct</span>
     </div>
     <div class="news-descript"><h2>News Title</h2>
     <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
     </p>
     </div></a>
     </div>


         <div class="eachnews">

    <a href="#"> <div class="news-date"><span class="day_news">18</span><span class="month_news">Mar</span>
     </div>
     <div class="news-descript"><h2>News Title</h2>
     <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
     </p>
     </div></a>
     </div>

     </marquee>     

the div where it is written "15 apr" is just repeating itself in ff, in chrome all divs are cycling fine. pls help

解决方案

Marquee and Blink are not standard, and are no longer supported in many newer browsers, including versions of FF and IE. Sorry.

However you can simulate them/reimplement them using javascript, if you really must.

这篇关于选框不能在Firefox中正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆