在字幕中将文本方向更改为rtl (从右到左)时出现问题。代码如下:
<marquee direction="left" behavior="alternate" scrollamount="1" class="qus" dir="rtl">some text علي</marquee>它不会移动,但当我移除dir="rtl"时,它工作得很好。。。但我需要dir="rtl"
发布于 2013-07-02 14:12:05
根据http://www.w3.org/html/wg/drafts/html/master/rendering.html#the-marquee-element的说法
direction属性与文本方向无关,只处理动画。
http://jsfiddle.net/austinpray/pzDfV/
<marquee direction="right" behavior="alternate" scrollamount="1" class="qus">some text علي</marquee>这很好用。
选取框太糟糕了。我会重新考虑使用它们。
发布于 2013-07-02 14:15:13
将rtl放在div中:
<marquee direction="left" behavior="alternate" scrollamount="1" class="qus" ><div style="direction:rtl;">some text علي</div></marquee>发布于 2013-07-02 14:17:49
在字幕中没有属性"dir“你可以使用方向"rtl”或方向右,或者字幕的选择你可以使用它liScroll
https://stackoverflow.com/questions/17418376
复制相似问题