HTML+CSS+Bootstrap:第一个页面,仿Airbnb首页
来源:互联网 发布:e领网络卡盟 编辑:程序博客网 时间:2024/05/16 09:49
这几天在Codecademy上看教程,前天看完了HTML+CSS部分,今天跟着教程做了一个页面。其中又用到了Bootstrap这个HTML/CSS框架。源码贴在这里以便以后查看。
HTML代码如下:
<!DOCTYPE html><html> <head> <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet"> <link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css"> <link rel="stylesheet" href="Airbnb.css"> </head> <body> <div class="nav"> <div class="container"> <ul class="pull-left"> <li><a href="#">Name</a></li> <li><a href="#">Browse</a></li> </ul> <ul class="pull-right"> <li><a href="#">Sign Up</a></li> <li><a href="#">Log In</a></li> <li><a href="#">Help</a></li> </ul> </div> </div> <div class="jumbotron"> <div class="container"> <h1>Find a place to stay.</h1> <p>Rent from people in over 34,000 cities and 192 countries.</p> <a href="#">Learn More</a> </div> </div> <div class="neighborhood-guides"> <div class="container"> <h2>Neighborhood Guides</h2> <p>Not sure where to stay? We've created neighborhood guides for cities all around the world.</p> <div class="row"> <div class="col-md-4"> <div class="thumbnail"> <img src="http://goo.gl/0sX3jq"/> </div> <div class="thumbnail"> <img src="http://goo.gl/an2HXY"/> </div> </div> <div class="col-md-4"> <div class="thumbnail"> <img src="http://goo.gl/Av1pac"/> </div> <div class="thumbnail"> <img src="http://goo.gl/vw43v1"/> </div> </div> <div class="col-md-4"> <div class="thumbnail"> <img src="http://goo.gl/0Kd7UO"/> </div> </div> </div> </div> </div> <div class="learn-more"> <div class="container"> <div class="row"> <div class="col-md-4"> <h3>Travel</h3> <p>From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.</p> <p><a href="#">See how to travel on Airbnb</a></p> </div> <div class="col-md-4"> <h3>Host</h3> <p>Renting out your unused space could pay your bills or fund your next vacation.</p> <p><a href="#">Learn more about hosting</a></p> </div> <div class="col-md-4"> <h3>Trust and Safety</h3> <p>From Verified ID to our worldwide customer support team, we've got your back.</p> <p><a href="#">Learn about trust at Airbnb</a></p> </div> </div> </div> </div> </body></html>
CSS代码如下:
.nav a { color: #5a5a5a; font-size: 11px; font-weight: bold; padding: 14px 10px; text-transform: uppercase;}.nav li { display: inline;}.jumbotron { background-image:url('http://goo.gl/04j7Nn'); height: 500px; background-repeat: no-repeat; background-size: cover;}.jumbotron .container { position: relative; top:100px;}.jumbotron h1 { color: #fff; font-size: 48px; font-family: 'Shift', sans-serif; font-weight: bold;}.jumbotron p { font-size: 20px; color: #fff;}.neighborhood-guides{ abackground-color:#efefef; border-bottom:1px solid #dbdbdb; }.neighborhood-guides h2{ color:#393c3d; font-size:24px; }.neighborhood-guides p{ font-size:15px; margin-bottom:13px; }.learn-more { background-color: #f7f7f7;}.learn-more h3 { font-family: 'Shift', sans-serif; font-size: 18px; font-weight: bold;}.learn-more a { color: #00b0ff;}
效果图如下:
0 0
- HTML+CSS+Bootstrap:第一个页面,仿Airbnb首页
- 第一个html+css页面
- 仿Airbnb首页的实现
- 仿Airbnb页面切换效果
- Html+Css基础之仿百度首页
- html+css仿百度新闻首页(上)
- html+css仿百度新闻首页(下)
- 仿UC头条首页-html+css+纯JS
- 仿新浪首页、主题、详情页,纯html静态页面
- 第一个 js/ html/ css
- 我的第一个bootstrap页面
- 我的第一个bootstrap页面
- django-bootstrap第一个登录页面
- 学习日记-第一个Bootstrap页面总结
- layoutit+Bootstrap html页面布局+CSS
- 仿百度页面(html+css)
- 第一个HTML5代码:HTML、HTML、CSS
- 仿百度首页div+css
- More Effective C++ 第六部分 杂项讨论
- 1014 装箱问题
- 十大思想实验
- 关于windows下编译caffe中blob C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe?
- 黑马程序员——Java---线程
- HTML+CSS+Bootstrap:第一个页面,仿Airbnb首页
- Django入门学习 (一)
- C++11: regex #2
- 树莓派利用Instapush服务推送信息到手机
- single dog
- 学习python
- 1214-1220———关于cron与日志上传
- easyui datagrid fitColumns 不生效
- 【算法拾遗(java描述)】--- 选择排序(直接选择排序、堆排序)