运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html lang="en"> <head> <!-- Theme Made By www.w3schools.com - No Copyright --> <title>Bootstrap Theme The Band</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <style> .container { padding: 80px 120px; } .person { border: 10px solid transparent; margin-bottom: 25px; width: 80%; height: 80%; opacity: 0.7; } .person:hover { border-color: #f1f1f1; } .carousel-inner img { -webkit-filter: grayscale(90%); filter: grayscale(90%); /* make all photos black and white */ width: 100%; /* Set width to 100% */ margin: auto; } .carousel-caption h3 { color: #fff !important; } @media (max-width: 600px) { .carousel-caption { display: none; /* Hide the carousel text when the screen is less than 600 pixels wide */ } } .bg-1 { background: #2d2d30; color: #bdbdbd; } .bg-1 h3 {color: #fff;} .bg-1 p {font-style: italic;} .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .list-group-item:last-child { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .thumbnail { padding: 0 0 15px 0; border: none; border-radius: 0; } .thumbnail p { margin-top: 15px; color: #555; } .btn { padding: 10px 20px; background-color: #333; color: #f1f1f1; border-radius: 0; transition: .2s; } .btn:hover, .btn:focus { border: 1px solid #333; background-color: #fff; color: #000; } .modal-header, h4, .close { background-color: #333; color: #fff !important; text-align: center; font-size: 30px; } .modal-header, .modal-body { padding: 40px 50px; } </style> </head> <body> <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> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="ny.jpg" alt="New York" width="1200" height="700"> <div class="carousel-caption"> <h3>New York</h3> <p>The atmosphere in New York is lorem ipsum.</p> </div> </div> <div class="item"> <img src="chicago.jpg" alt="Chicago" width="1200" height="700"> <div class="carousel-caption"> <h3>Chicago</h3> <p>Thank you, Chicago - A night we won't forget.</p> </div> </div> <div class="item"> <img src="la.jpg" alt="Los Angeles" width="1200" height="700"> <div class="carousel-caption"> <h3>LA</h3> <p>Even though the traffic was a mess, we had the best time playing at Venice Beach!</p> </div> </div> </div> <!-- Left and right controls --> <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> <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 class="container text-center"> <h3>THE BAND</h3> <p><em>We love music!</em></p> <p>We have created a fictional band website. Lorem ipsum..</p> <br> <div class="row"> <div class="col-sm-4"> <p class="text-center"><strong>Name</strong></p><br> <a href="#demo" data-toggle="collapse"> <img src="bandmember.jpg" class="img-circle person" alt="Random Name" width="255" height="255"> </a> <div id="demo" class="collapse"> <p>Guitarist and Lead Vocalist</p> <p>Loves long walks on the beach</p> <p>Member since 1988</p> </div> </div> <div class="col-sm-4"> <p class="text-center"><strong>Name</strong></p><br> <a href="#demo2" data-toggle="collapse"> <img src="bandmember.jpg" class="img-circle person" alt="Random Name" width="255" height="255"> </a> <div id="demo2" class="collapse"> <p>Drummer</p> <p>Loves drummin'</p> <p>Member since 1988</p> </div> </div> <div class="col-sm-4"> <p class="text-center"><strong>Name</strong></p><br> <a href="#demo3" data-toggle="collapse"> <img src="bandmember.jpg" class="img-circle person" alt="Random Name" width="255" height="255"> </a> <div id="demo3" class="collapse"> <p>Bass player</p> <p>Loves math</p> <p>Member since 2005</p> </div> </div> </div> </div> <!-- Container (TOUR Section) --> <div class="bg-1"> <div class="container"> <h3 class="text-center">TOUR DATES</h3> <p class="text-center">Lorem ipsum we'll play you some music.<br> Remember to book your tickets!</p> <ul class="list-group"> <li class="list-group-item">September <span class="label label-danger">Sold Out!</span></li> <li class="list-group-item">October <span class="label label-danger">Sold Out!</span></li> <li class="list-group-item">November <span class="badge">3</span></li> </ul> <div class="row text-center"> <div class="col-sm-4"> <div class="thumbnail"> <img src="paris.jpg" alt="Paris" width="400" height="300"> <p><strong>Paris</strong></p> <p>Friday 27 November 2015</p> <button class="btn" data-toggle="modal" data-target="#myModal">Buy Tickets</button> </div> </div> <div class="col-sm-4"> <div class="thumbnail"> <img src="newyork.jpg" alt="New York" width="400" height="300"> <p><strong>New York</strong></p> <p>Saturday 28 November 2015</p> <button class="btn" data-toggle="modal" data-target="#myModal">Buy Tickets</button> </div> </div> <div class="col-sm-4"> <div class="thumbnail"> <img src="sanfran.jpg" alt="San Francisco" width="400" height="300"> <p><strong>San Francisco</strong></p> <p>Sunday 29 November 2015</p> <button class="btn" data-toggle="modal" data-target="#myModal">Buy Tickets</button> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4><span class="glyphicon glyphicon-lock"></span> Tickets</h4> </div> <div class="modal-body"> <form role="form"> <div class="form-group"> <label for="psw"><span class="glyphicon glyphicon-shopping-cart"></span> Tickets, $23 per person</label> <input type="number" class="form-control" id="psw" placeholder="How many?"> </div> <div class="form-group"> <label for="usrname"><span class="glyphicon glyphicon-user"></span> Send To</label> <input type="text" class="form-control" id="usrname" placeholder="Enter email"> </div> <button type="submit" class="btn btn-block">Pay <span class="glyphicon glyphicon-ok"></span> </button> </form> </div> <div class="modal-footer"> <button type="submit" class="btn btn-danger btn-default pull-left" data-dismiss="modal"> <span class="glyphicon glyphicon-remove"></span> Cancel </button> <p>Need <a href="#">help?</a></p> </div> </div> </div> </div> </div> </body> </html>