【问题标题】:blinking text on data-bond - html [duplicate]数据绑定上的闪烁文本 - html [重复]
【发布时间】:2016-06-05 07:12:15
【问题描述】:

我希望文本闪烁以引起用户注意。

以下是代码

<div class="col-md-6">
      <div id="placeMap" class="placeMap" style="width: 100%; height: 300px;"></div>
      <div data-bind="if: showSubmit">Drag the map pin or enter a new address to change the location</div>
    </div>

我想闪烁“拖动猫针……改变位置”

该行仅在启用提交按钮时显示。

【问题讨论】:

  • 作为用户...我真的讨厌网站这样做...
  • 我也不喜欢闪烁的文字,但客户需要它:(
  • 啊客户...如果我们没有他们会容易得多...(哦等等)。 :)

标签: html text


【解决方案1】:

你可以用 CSS3 做到这一点:

.blinkingText {
    animation: 1 blink 1s step-end infinite
}

@keyframes blink {
    0% {background-color: blue}
    50% {background-color: black}
}

【讨论】:

    猜你喜欢
    • 2015-09-27
    • 1970-01-01
    • 2012-03-06
    • 1970-01-01
    • 2020-02-29
    • 1970-01-01
    • 2014-08-09
    • 2017-03-08
    • 1970-01-01
    相关资源
    最近更新 更多