从选框中移除白色间隙

时间:2018-04-27 20:01:19

标签: html tags

选框上有一个白色的间隙。

我放了一个长句(突发新闻)突发新闻突发新闻突发新闻突发新闻突发新闻突发新闻)但它继续前进然后B触摸接触边缘

  

B 重新开新消息突发新闻最新消息突发新闻......

在所有事情都结束之前,它不会从另一端出来

  

取值

^以上是几乎要从另一端出来的句子^

我搜遍了谷歌(我甚至在谷歌上发现了一个黑客攻击(搜索" marquee html"))



<marquee>here is the text I repeat it over and over again it keeps going and going but the beginning wouldn't come out until I touch it</marquee>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

您可能不应该使用<marquee>标记,因为它已被弃用,或者已过时,https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee

也许尝试使用javascript / jquery解决方案。这个

有很多插件

修改

我发现这个jQuery Marquee插件有一个无间隙的选项,就像你正在寻找的那样。这是一个例子

&#13;
&#13;
$('.marquee').marquee({
  direction: 'left'
});
&#13;
.marquee {
  width: 300px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #ccc;
}
&#13;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type='text/javascript' src='//cdn.jsdelivr.net/jquery.marquee/1.4.0/jquery.marquee.min.js'></script>

<div class="marquee" data-duplicated='true' data-direction='left'>jQuery marquee is the best marquee plugin in the world</div>
&#13;
&#13;
&#13;