【发布时间】:2017-10-18 17:49:06
【问题描述】:
我正在使用 dashing.io,我想构建一个带有选取框的小部件。我用 css 动画和 html (http://jsfiddle.net/oLLzsyud/) 做了一个选框。它适用于此,但它得到了这样的小部件: sccs:
.widget-marquee {
background: #004894;
$color_celeste_approx: #cccccc;
.marquee {
width: 200px;
margin: auto;
padding: 2px;
overflow: hidden;
white-space: nowrap;
border: solid 1px $color_celeste_approx;
animation: marquee 10s linear infinite;
&:hover {
animation-play-state: paused;
}
}
@keyframes marquee {
100% {
text-indent: -100%;
}
0% {
text-indent: 100%;
}
}
}
html:
<div class="marquee">
<span data-bind="stoer"></span>
</div>
在破折号中显示如下 and doesnt move
我没有碰咖啡脚本。它是小部件生成时的默认设置。
我没有看到有什么问题以及为什么它在 dashing 中不起作用。也许这里有人知道为什么它不能在 dashing 中工作,而是在普通页面上使用 css 和 html。
感谢您的回答。
【问题讨论】: