【问题标题】:Is there a way to add text content at the end of a responsive slideshow photo gallery?有没有办法在响应式幻灯片照片库的末尾添加文本内容?
【发布时间】:2017-08-01 01:32:36
【问题描述】:

我正在 Wordpress 上开发一个网站,并试图弄清楚如何在幻灯片放映结束时添加文本以使网站更简单。这个网站帖子有我想要的https://hypebeast.com/2017/7/calvin-klein-flagship-makeover

我尝试“查看源”幻灯片,但没有成功。我想要同样风格的幻灯片。

谁能帮忙?

【问题讨论】:

标签: javascript wordpress css responsive-design slideshow


【解决方案1】:

您提供的第一个示例采用无序列表元素<ul>,并将其转换为幻灯片。此示例使用名为 "FlexSlider" 的插件。这是一个 FlexSlider 的实现,它带有一个“文本”页面作为我一起破解的最后一张幻灯片:

<html>
<head>
<!-- Place somewhere in the <head> of your document -->
<link rel="stylesheet" href="flexslider.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="jquery.flexslider.js"></script>
<!-- Place in the <head>, after the three links -->
<script type="text/javascript" charset="utf-8">
  $(window).load(function() {
    $('.flexslider').flexslider();
  });
</script>
</head>
<body>
<!-- Place somewhere in the <body> of your page -->
<div class="flexslider">
  <ul class="slides">
    <li>
      <img src="https://static.pexels.com/photos/248797/pexels-photo-248797.jpeg" />
    </li>
    <li>
      <img src="https://static.pexels.com/photos/230629/pexels-photo-230629.jpeg" />
    </li>
    <li>
      <img src="https://static.pexels.com/photos/248797/pexels-photo-248797.jpeg" />
    </li>

    <li class="slide related-posts-slide hidden-md hidden-sm hidden-xs flex-active-slide">
        <div class="col-xs-12">
            <p>You can put all of your content here, and treat it as it's own page.</p>
        </div>
    </li>
  </ul>
</div>
</body>
</html>

【讨论】:

猜你喜欢
  • 2022-09-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多