小编lis*_* p.的帖子

在Google Assistant中播放YouTube视频的代码

我们如何播放YouTube视频作为对Google Assistant应用的回应?

到目前为止,如果我说要在Google助手应用程序上与Gurudev对话,它会显示一些视频,当我单击它们时,它们会在Google助手上弹出。

我们如何使用对话框流程和实现在我们的应用程序中实现此功能?

fulfillment actions-on-google dialogflow-es

5
推荐指数
1
解决办法
1357
查看次数

CSS边框颜色切换动画:“from”颜色不正确

我构建了一个CSS 动画,其中一部分是更改div 的边框颜色。

我正在使用fromto值。边框应该闪烁白色和蓝色,但我得到的不是白色而是浅蓝色

我构建了一个最小的片段来演示这一点。知道我做错了什么吗?

.switch {
  width: 100px;
  height: 100px;
  border: 5px solid white;
  -webkit-animation: switch-animation 2s steps(2, start) infinite;
  animation: switch-animation 2s steps(2, start) infinite;
}

@keyframes switch-animation {
  from {
    border-color: white;
  }
  to {
    border-color: blue;
  }
}
@-webkit-keyframes switch-animation {
  from {
    border-color: white;
  }
  to {
    border-color: blue;
  }
}
Run Code Online (Sandbox Code Playgroud)
<html>
  <head></head>
  <body>
    <div class="switch"></div>
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

html css border css-animations

3
推荐指数
1
解决办法
1887
查看次数