Почему теги link / span в моем <marquee>появляются в нескольких строках в Firefox? - PullRequest
1 голос
/ 04 апреля 2011
<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: GOOOOOOOD !!!!

показано: 1/2/2011 один 02.02.2011 два 3/2/2011 три 04.02.2011 четыре

только в одной строке.

НО

В Firefox: Проблема ????????

показано:

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

Всевместе несколько строк перемещаются

jquery, эквивалент того, кто делает то же самое, и справа налево ;;

1 Ответ

0 голосов
/ 04 апреля 2011

Я думаю, что Firefox может отображать разрывы строк внутри тега <marquee>, как если бы они были тегами <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>
...