- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试使用网络幻灯片 - https://github.com/webslides/WebSlides .我不是编码员,但这看起来很棒,我想尝试使用它。我对可能存在的功能有疑问,但我可能看不到它。我正在寻找如何一个接一个地显示幻灯片的不同部分/片段。例如,在您的演示网站上,从 15 到 23 的幻灯片显示了位于幻灯片不同部分的不同文本片段,但一次只能看到一个片段。如果我想一个一个地显示所有这些片段(点击箭头),那么最后我会在同一张幻灯片上看到所有这些片段怎么办?这就像一次显示幻灯片的各个部分。我认为 reveal.js 将其称为碎片化幻灯片,但网页幻灯片更易于使用,因此如果您能向我解释如何重新创建此功能,那就太好了。
我试过将两个相似的 div 放在同一个部分,但我仍然同时显示,而不是一个接一个地显示。
<section class="slide-top">
<div class="wrap">
<div class="content-left">
<h4>1/9 left top</h4>
<p>Put content wherever you want. Have less. Do more</p>
<p><code>.slide-top and .content-left</code></p>
</div>
</div>
<div class="wrap">
<div class="content-right">
<h4>1/9 right top</h4>
<p>Put content wherever you want. Have less. Do more</p>
<p><code>.slide-top and .content-right</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
这段代码让我同时出现了两个片段
但我想要一个接一个。谢谢
最佳答案
我不知道 WebSlides,看起来很不错。你引用这个演示页面,我假设:https://webslides.tv/demos/components#slide=15
这个示例部分是这样构建的:
<section class="slide-top">
<div class="wrap">
<div class="content-left">
<h3>1/9 left top</h3>
<p>Put content wherever you want. Have less. Do more. Create beautiful solutions.</p>
<p><code>.slide-top and .content-left</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
<section class="slide-top">
<div class="wrap">
<div class="content-center">
<h3>2/9 center top</h3>
<p>Your story needs to be clear. A great lasting story is about everyone or it will not last. </p>
<p><code>.slide-top and .content-center</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
<section class="slide-top">
<div class="wrap">
<div class="content-right">
<h3>3/9 right top</h3>
<p>Your story needs to be short. Select words carefully, each one must convey a meaning.</p>
<p><code>.slide-top and .content-right</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
如此处所述,每个 <section>
是一张单独的幻灯片,因此上面的示例显示了不同的幻灯片。
基本上你已经给出答案了,有可能在https://revealjs.com/并称为 Fragments ( https://revealjs.com/#/fragments )。但 WebSlides 旨在保持简单。
我不知道是否有内置的方法来做你想做的事,但快速而肮脏的解决方案是复制粘贴:你在第一张幻灯片上使用第一个元素,在第二张幻灯片,第三张幻灯片上的第一个、第二个和第三个元素。因此,您必须编辑片段 n 次。这是非常糟糕的重复,要避免这种情况,您必须进行一些编程 - 或者使用 reveal.js。但是,它在一定程度上起作用:
<section class="slide-top">
<div class="wrap">
<div class="content-left">
<h3>1/9 left top</h3>
<p>Put content wherever you want. Have less. Do more. Create beautiful solutions.</p>
<p><code>.slide-top and .content-left</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
<section class="slide-top">
<div class="wrap">
<div class="content-left">
<h3>1/9 left top</h3>
<p>Put content wherever you want. Have less. Do more. Create beautiful solutions.</p>
<p><code>.slide-top and .content-left</code></p>
</div>
</div>
<!-- .end .wrap -->
<div class="wrap">
<div class="content-center">
<h3>2/9 center top</h3>
<p>Your story needs to be clear. A great lasting story is about everyone or it will not last. </p>
<p><code>.slide-top and .content-center</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
<section class="slide-top">
<div class="wrap">
<div class="content-left">
<h3>1/9 left top</h3>
<p>Put content wherever you want. Have less. Do more. Create beautiful solutions.</p>
<p><code>.slide-top and .content-left</code></p>
</div>
</div>
<!-- .end .wrap -->
<div class="wrap">
<div class="content-center">
<h3>2/9 center top</h3>
<p>Your story needs to be clear. A great lasting story is about everyone or it will not last. </p>
<p><code>.slide-top and .content-center</code></p>
</div>
</div>
<!-- .end .wrap -->
<div class="wrap">
<div class="content-right">
<h3>3/9 right top</h3>
<p>Your story needs to be short. Select words carefully, each one must convey a meaning.</p>
<p><code>.slide-top and .content-right</code></p>
</div>
</div>
<!-- .end .wrap -->
</section>
关于javascript - 单击时显示幻灯片的不同片段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50475476/
我已将重要信息加粗以使其更易于阅读。 我昨天刚刚更新到Xcode 7.3并且一整天都在尝试解决我的问题。对于类(class),我们用 C 编程 并使用 SVN 修改我们所有的文件以创建我们的项目。我使
在互联网上进行了一些挖掘之后,我无法找到一个很好的答案来说明我可以将哪些字符用于 URL 片段。我正在编写一个 javascript 脚本,它将利用 URL 片段。 我想让 URL 看起来不那么复杂,
我正在尝试在分段文件(styp)的 mp4 容器中定位 h264 帧。对于分割,我目前使用 MP4Box dash。我使用 MP4Box 解析器,我注意到在每个关键帧(IDR)中样本的大小与原始文件中
我想要一个自定义片段动画,以便它们淡入右/淡入左,然后在短暂延迟后淡出。假定所有片段都具有类 .visible 和 .current-fragment。我以为我可以在短暂的延迟后删除类 .visibl
有没有人看到过在 C# 中自动调平图像的任何好的片段? 最佳答案 参见 http://code.google.com/p/aforge/ 关于C# Autolevel 片段?,我们在Stack O
如何检索 View 所属的 Fragment/sap.ui.core.Control? BR 克里斯 最佳答案 如果您的控件的标识符包含 View 的标识符(如果您使用的是 XML View ,则类似
我试图了解这个函数的作用。任何人都可以向我解释这一点吗? function newInstance (class) local o = {} setmetatable (o, clas
简介 根据 this documentation可以指定依赖项,包括每个包的版本,如下所示: 问题 需要应用哪个 Nuspec 片段才能安装依赖项的最新版本? 最佳答案 不幸的是,您无法
我有一个 Gatsby 项目,它对两种不同类型的内容进行了非常相似的 GraphQL 查询:常规页面和 wiki 文章。 按蛞蝓 页 export const query = graphql` q
我遇到了以下教程 JSP tricks to make templating easier?用于使用 JSP 创建页面模板(我怎么这么久都没有想到这个?!?)。但是,在进行了一些搜索之后,我似乎无法弄
我是 Django 的新手,我试图找出如何将 HTML 片段与模型相关联。 我的 HTML 片段只是一个 div。我想重用那个 div(你可以把它想象成一个缩略图) 情况是这样的:在我的主页中,我想显
我经常使用 vim,但我的工作流程通常迫使我与其他 IDE 交互,所以我不是一个像上帝一样的 vim super 用户,我也不想很快成为。 Vim 不是我的 IDE,我也不希望它是。这是一款快速轻便的
我刚刚了解到一个关于在抛出错误时执行 Javascript 的重要事实。在我开始对此下结论之前,我最好验证一下我是否正确。 给定一个包含 2 个脚本的 HTML 页面: 脚本1: doSometh
我是在Chrome片段中编写的: let myVar = someValue; 当我尝试第二次运行它时,它说该变量已被声明并在第一行引发错误。 错误是: Uncaught SyntaxError: I
我想要两个像素着色器;首先要做一件事,然后再做其他事情。这是可能的,还是我必须将所有内容打包到一个着色器中? 最佳答案 您可以这样做,例如通过从主入口点对在各种着色器对象中实现的函数进行函数调用。 m
我正在尝试检查汽车前面是否有任何障碍物。假设汽车在位置“2”。我的目标是检查位置“3”处是否有障碍物。 可能没有明确的障碍事实,这意味着在特定位置没有障碍。我检查使用是否存在有条件。但是在规则 r6
我想在文本区域内编写一个 JavaScript,而不运行 JavaScript。显示为一些可复制的文本。 我使用 jquery 同时插入文本区域和代码片段: $("#copy-snippet-cont
有人可以解释以下 htacess 行,我理解部分内容,但想要更深入的知识。作为注释,我假设它按预期工作,这目前还没有上线,我只是在阅读一些工作簿,这是打印的。 // Don't understand
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
我目前正在尝试使用 Jquery 根据下拉列表的值附加音频标签 html 列表。主要问题是,当选择值更改时,empty() 和append() 方法根本不会将html 注入(inject)到播放列表d
我是一名优秀的程序员,十分优秀!