轮播图 、模态框

轮播图

<div class="container">
  <div class="row">
      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
          
          <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>
        
          
          <div class="carousel-inner" role="listbox">
            <div class="item active">
              <img src="..." alt="...">
              <div class="carousel-caption">
                
              div>
            div>
            <div class="item">
              <img src="..." alt="...">
              <div class="carousel-caption">
               
              div>
            div>
            
          div>
        
          
          <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">Previousspan>
          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">Nextspan>
          a>
        div>
  div>
div>

 

  

  1.  data-interval=“ 5000” 自动循环项目之间的延迟时间。如果为假,则轮播不会自动循环。
  2. data-keyboard = boolean | true 轮播是否应该对键盘事件做出反应。
  3. data- pause =string | null 如果设置为"hover",则暂停轮播mouseenter的循环,然后继续轮播的循环mouseleave。如果设置为null,则将鼠标悬停在转盘上不会暂停它。
  4. data-wrap=boolean | true 轮播是否应该连续循环或是否有硬停止。

 

 

模态框

 <button class="btn btn-success" type="button" data-toggle="modal" data-target="#mymodal">安全退出button>

    <div class="modal fade" id ='mymodal'>
        <div class="modal-dialog"><--控制黑屏-->
            <div class="modal-content modal-lg"><--显示方块大小-->
                <div class="modal-header"><--上一部分-->
                    <button type="button" class="close"><span  data-dismiss="modal"  class="glyphicon glyphicon-remove">span>button>
                    <h4 class="modal-title">微信应用提示h4>
                div>
                <div class="modal-body"><--中间部分-->
                    6666
                div>
                <div class="modal-footer"><--底部-->
                        <button class="btn btn-primary">确定button>
                        <button class="btn btn-danger" data-dismiss="modal">取消button>
                div>
            div>
        div>
    div>

 

 

 

 

 

 

你可能感兴趣的:(轮播图 、模态框)