1
<marquee behavior="scroll" scrollamount="10" onmouseover="style.cursor='hand';   this.setAttribute('scrollamount', 0, 0);"                       onmouseout="this.setAttribute('scrollamount', 6, 0);" id="ticker" direction="right">
   <div style="width:719px ;height:20px; font-family:Arial;color:red"id="ticker01">
       <span>1/2/2011</span><a href="a.aspx">one</a>
       <span>2/2/2011</span><a href="b.aspx">two</a>
       <span>3/2/2011</span><a href="c.aspx">three</a>
       <span>4/2/2011</span><a href="d.aspx">four</a>           
   </div>
</marquee>

IE8 の場合:GOOOOOOOOD!!!!

2011 年 2 月 1 日 1 件 2011 年 2 月 2 日 2 件 2011 年 3 月 2 日 3 件 2011 年 4 月 2 日 4 件

一行だけ。

しかし

Firefox の場合:問題?????????

表示:

       1/2/2011 one 
       2/2/2011 two
       3/2/2011 three
       4/2/2011 four

いっしょに、いくつかの線が動いている

jquery、誰かが同じことをするのと同等で、右から左にある;;


見る:

http://personnel.univ-reunion.fr/fred/Enseignement/Prolog/index.html

"La librairie clpfd" の下に、このクラスで使用される 3 つの有限領域制約アニメーション (N-Queens、Sudoku、Knight Tour) へのリンクがあります。

4

1 に答える 1

0

<marquee>Firefoxは、タグ内の改行をタグであるかのようにレンダリングしているのではないでしょ<br>うか。

少し面倒ですが、改行を削除してみてください。

<marquee behavior="scroll" scrollamount="10" onmouseover="style.cursor='hand';   this.setAttribute('scrollamount', 0, 0);"                       onmouseout="this.setAttribute('scrollamount', 6, 0);" id="ticker" direction="right">
   <div style="width:719px ;height:20px; font-family:Arial;color:red"id="ticker01">
       <span>1/2/2011</span><a href="a.aspx">one</a> <span>2/2/2011</span><a href="b.aspx">two</a> <span>3/2/2011</span><a href="c.aspx">three</a> <span>4/2/2011</span><a href="d.aspx">four</a>           
   </div>
</marquee>
于 2011-04-04T08:00:40.067 に答える