[bootstrap]一个简单的bootstrap4的card的demo

一个简单的bootstrap4的card的demo

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

<head>
    <!-- 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://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
        crossorigin="anonymous">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
    <title>Pattern</title>

    <style type="text/css">
        #header {
            background: url(imgs/header.jpeg);
            background-size: cover;
            background-position: center;
        }

    </style>
</head>

<body>

    <nav class="navbar navbar-dark bg-dark">
        <div class="container">
          <a class="navbar-brand" href="#"> <i class="fas fa-binoculars mr-3 "></i> PATTERN</a>
        </div>
    </nav>

    <section id="header" class="jumbotron">
    <div class="d-flex flex-column align-items-center">
        <div><h1 class="display-3">PATTERN</h1></div>
        <div><p class="lead">Lorem ipsum i wanna go all the way around to embrace you</p></div>
        <div>
            <a class="btn btn-primary" href="#">do something</a>
            <a class="btn btn-info" href="#">do another</a>
        </div>
    </div>
    </section>

    <section id="gallery" class="container">
        <div class="row">
            <div class="col-lg-4 mb -4">
                <div class="card">
                    <img class="card-img-top" src="imgs/pattern1.jpeg"></img>
                    <div class="card-body">
                        <h5 class="card-title">Picture1</h5>
                        <p class="card-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type a</p>
                        <a class="btn btn-outline-success btn-sm" href="#">click me</a>
                        <a class="btn btn-outline-danger btn-sm" href="#"><i class="fas fa-heart"></i></a>
                    </div>
                </div>
            </div>
            <div class="col-lg-4 mb -4">
                <div class="card">
                    <img class="card-img-top" src="imgs/pattern2.jpeg"></img>
                    <div class="card-body">
                        <h5 class="card-title">Picture1</h5>
                        <p class="card-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type a</p>
                        <a class="btn btn-outline-success btn-sm" href="#">click me</a>
                        <a class="btn btn-outline-danger btn-sm" href="#"><i class="fas fa-heart"></i></a>
                    </div>
                </div>
            </div>
            <div class="col-lg-4 mb -4">
                <div class="card">
                    <img class="card-img-top" src="imgs/pattern3.jpeg"></img>
                    <div class="card-body">
                        <h5 class="card-title">Picture1</h5>
                        <p class="card-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type a</p>
                        <a class="btn btn-outline-success btn-sm" href="#">click me</a>
                        <a class="btn btn-outline-danger btn-sm" href="#"><i class="fas fa-heart"></i></a>
                    </div>
                </div>
            </div>

        </div>
    </section>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
        crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
        crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
        crossorigin="anonymous"></script>
</body>

</html>

猜你喜欢

转载自blog.csdn.net/weixin_36869329/article/details/85140424