在小而宽的容器中创建旋转木马

时间:2017-12-02 21:23:23

标签: html css twitter-bootstrap

https://jsfiddle.net/8tcupybL/

<!doctype html>
<html lang="en">

<head>
<title>Hello, world!</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb"
    crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/ussettler.css">
<link rel="stylesheet" type="text/css" href="css/sykesuss.css">

<body>
<div class="container-fluid">
    <div class="row">
        <div id="ussnav" class="col-12 col-md-12 nopadding">
            <ul>
                <li><a href="index.html"><img src="images/ussettler.png" id="logo"></a></li>
                <li></li>
                <li>Contact</li>
                <li>About</li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div id="ussbody" class="col-12 col-md-12 nopadding container-fluid">
            <div class="row">
                <div id="paneluss" class="col-9 col-md-9 nopadding container-fluid">
                    <div class="row">
                        <div id="contactuss" class="col-xs-12 col-md-12 nopadding container-fluid">

                        </div>
                        <div id="galleryuss" class="col-xs-12 col-md-12 nopadding container-fluid">
                            <!--<div class="carousel">
                                <div>1<img src="images/ussettler"></div>
                                <div>2<img src="images/ussettler"></div>
                                <div>3<img src="images/ussettler"></div>
                                <div>4<img src="images/ussettler"></div>
                                <div>5<img src="images/ussettler"></div>
                                <div>6<img src="images/ussettler"></div>
                                <div>7<img src="images/ussettler"></div>
                            </div>-->
                        </div>
                        <div id="teaminfouss" class="col-xs-12 col-md-12 nopadding container-fluid">
                            <div id="infotext"><p>More introduction on service and team.</p></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div id="ussfooter" class="col-12 col-md-12 nopadding">
            <ul class="footerlist fixedfooter">
                <li>USSettler @ 2017</li>
                |
                <li>Disclaimer</li>
                |
                <li>Privacy Policy</li>
                |
                <li>Join Our Team</li>
                |
                <li>Contact Us</li>
                |
                <li> 
                    <span>Sign up for our updates</span>
                </li>
                <li>
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
    crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"
    crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"
    crossorigin="anonymous"></script>
<script src="js/ussettler.js"></script>

在上面的小提琴中,我希望在中间部分添加一个reponsive图像轮播。发布的模拟图像中有一个示例。我是carousel的新手,如果可能的话,我更喜欢没有javascript。或者,如果有人有一个很好的链接,我可以学习html / css版本或javascript所需的一个非常棒的感谢!

Mock Webpage

0 个答案:

没有答案