流星悟语 发表于 2015-10-1 19:16:29

tizen设备引导旋转木马幻灯片代码

提出了如何显示图像,自动开关,可以手动切换。 你要记住设置网络特权外部脚本和数据。

<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 ">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style>
body {
margin:0px;
}
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
      width: 70%;
      margin: auto;
}
.carousel-control {
border-radius: 10px;
-webkit-border-radius: 10px;
}
p {
color:black;
}
</style>
</head>
<body>

<div class="container">
<br>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
      <li data-target="#myCarousel" data-slide-to="3"></li>
    </ol>
   
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
   
      <div class="item active">
      <img src="image_url" alt="Chania" width="100%" >
      <div class="carousel-caption">
          <p>You can put some text here.</p>
      </div>
      </div>

      <div class="item">
      <img src="image_url" alt="Chania" width="100%" >
      <div class="carousel-caption">
          <p>You can put some text here.</p>
      </div>
      </div>
   
      <div class="item">
      <img src="image_url" alt="Flower" width="100%" >
      <div class="carousel-caption">
          <p>You can put some text here.</p>
      </div>
      </div>

      <div class="item">
      <img src="image_url" alt="Flower" width="100%" >
      <div class="carousel-caption">
          <p>You can put some text here.</p>
      </div>
      </div>

    </div>

    <!-- Left control -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <!-- Right control -->
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
</div>
</div>
</body>
</html>

页: [1]
查看完整版本: tizen设备引导旋转木马幻灯片代码