Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在静态图像上使用文本的HTML旋转木马_Html_Twitter Bootstrap_Carousel - Fatal编程技术网

在静态图像上使用文本的HTML旋转木马

在静态图像上使用文本的HTML旋转木马,html,twitter-bootstrap,carousel,Html,Twitter Bootstrap,Carousel,(本章新增) 我试图得到一个静态图像,上面有一个不同文本的旋转木马。我尝试过使用引导转盘HTML和删除部分(如多个图像),并使用“转盘标题”类来处理我的文本,但这需要一些样式来使其居中等。这可能是最好的方法,但如果有更简单的方法,请让我知道!(它位于jumbotron分区中,因为我正在使用jumbotron分区中的一张图片以方便使用) 短暂性脑缺血发作 示例标题 示例说明 示例头 示例说明 示例标题 示例描述 示例标题 示例说明 示例头 示例说明 示例标题 示例描述 是的,这似

(本章新增) 我试图得到一个静态图像,上面有一个不同文本的旋转木马。我尝试过使用引导转盘HTML和删除部分(如多个图像),并使用“转盘标题”类来处理我的文本,但这需要一些样式来使其居中等。这可能是最好的方法,但如果有更简单的方法,请让我知道!(它位于jumbotron分区中,因为我正在使用jumbotron分区中的一张图片以方便使用) 短暂性脑缺血发作


  • 示例标题 示例说明

    示例头 示例说明

    示例标题 示例描述

    
    
  • 示例标题 示例说明

    示例头 示例说明

    示例标题 示例描述


    是的,这似乎有效。我的控制装置和指示器到处都是,所以这已经解决了这个问题。因此,我将使用CSS将文本居中…谢谢。如果你觉得这个答案有帮助,请向上投票并将其标记为正确。谢谢。这和我吃的差不多吗?因为它做了同样的事情。我仍然希望有一个更简单的方法来做这件事,但也许那是不存在的。谢谢你的回答。这有什么用呢?它只需添加一个图像,就可以在静态图像上旋转文本(因此没有图像旋转),但标题仍然旋转。我想知道是否有一种更简单的方法来避免对所有旋转木马元素进行如此多的样式化。。。。我是否可以在div中放置一个图像,并在其上覆盖旋转木马?
    <div class="jumbotron" id="testimonials">
          <div class="container">
              <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
      <!-- Indicators -->
      <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
      </ol>
    
      <!-- Wrapper for slides -->
      <div class="carousel-inner" role="listbox">
        <div class="item active">
        <div class="carousel-text">
            <h3>Example headline</h3>
            <p>Example description</p>
          </div>
          <!-- <img src="img/lesson8-portfolioheroimage2.jpg" alt="..."> -->
    
        </div>
        <div class="item">
          <!-- <img src="img/portfolioheroimage.jpg" alt="..."> -->
          <div class="carousel-text">
            <h3>Example head</h3>
            <p>Example description</p>
          </div>
        </div>
        <div class="item">
          <!-- <img src="img/portfolioheroimage3.jpg" alt="..."> -->
          <div class="carousel-text">
            <h3>Example headline</h3>
            <p>Example descri</p>
          </div>
        </div>
      </div>
    
      <!-- Controls -->
      <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>
    
    
          </div><!-- container -->
        </div><!-- jumbotron -->