一、咨询内容
<nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <a href="#" class="navbar-brand logo"><img src="<%=path%>/img/logo.jpg" alt="瓢城企训网"></a> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="navbar-collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="index.html"><span class="glyphicon glyphicon-home"></span> 首页</a></li> <li class="active"><a href="#"><span class="glyphicon glyphicon-list"></span> 资讯</a></li> <li><a href="case.html"><span class="glyphicon glyphicon-fire"></span> 案例</a></li> <li><a href="about.html"><span class="glyphicon glyphicon-question-sign"></span> 关于</a></li> </ul> </div> </div> </nav> <div class="jumbotron"> <div class="container"> <hgroup> <h1>资讯</h1> <h4>企业内训的最新动态、资源等...</h4> </hgroup> </div> </div> <div id="information"> <div class="container"> <div class="row"> <div class="col-md-8"> <div class="container-fluid" style="padding:0;"> <div class="row info-content"> <div class="col-md-5 col-sm-5 col-xs-5"> <img src="<%=path%>/img/info1.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7"> <h4>广电总局发布TVOS2.0 华为阿里参与研发</h4> <p class="hidden-xs">TVOS2.0是在TVOS1.0与华为MediaOS及阿里巴巴YunOS融合的基础上,打造的新一代智能电视操作系统。华为主要承担开发工作,内置的电视购物商城由阿里方面负责。</p> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row info-content"> <div class="col-md-5 col-sm-5 col-xs-5"> <img src="<%=path%>/img/info2.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7"> <h4>苹果四寸手机为何要配置强大的A9处理器?</h4> <p class="hidden-xs">苹果明年初有可能对外发布一款经过升级的四英寸手机,相当于iPhone 5s。该手机将会配置苹果在2015年旗舰手机中采用的A9处理器。配置性能如此强大的应用处理器?</p> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row info-content"> <div class="col-md-5 col-sm-5 col-xs-5"> <img src="<%=path%>/img/info3.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7"> <h4>六家互联网公司发声明 抵制流量劫持等违法行为</h4> <p class="hidden-xs">六家互联网公司(今日头条、美团大众点评网、360、腾讯、微博、小米科技)发布联合声明,呼吁有关运营商打击流量劫持,重视互联网公司被流量劫持,可能导致的严重后果。</p> <p>admin 15 / 10 / 11</p> </div> </div> </div> </div> <div class="col-md-4 info-right hidden-xs hidden-sm"> <blockquote> <h2>热门资讯</h2> </blockquote> <div class="container-fluid"> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info2.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>苹果四寸手机为何要配置强大的A9处理器?</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info1.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>广电总局发布TVOS2.0 华为阿里参与研发</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info3.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>六家互联网公司发声明 抵制流量劫持等违法行为</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info2.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>苹果四寸手机为何要配置强大的A9处理器?</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info1.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>广电总局发布TVOS2.0 华为阿里参与研发</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info3.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>六家互联网公司发声明 抵制流量劫持等违法行为</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info2.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>苹果四寸手机为何要配置强大的A9处理器?</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info1.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>广电总局发布TVOS2.0 华为阿里参与研发</h4> <p>admin 15 / 10 / 11</p> </div> </div> <div class="row"> <div class="col-md-5 col-sm-5 col-xs-5" style="margin: 12px 0; padding: 0"> <img src="<%=path%>/img/info3.jpg" class="img-responsive" alt=""> </div> <div class="col-md-7 col-sm-7 col-xs-7" style="padding-right: 0"> <h4>六家互联网公司发声明 抵制流量劫持等违法行为</h4> <p>admin 15 / 10 / 11</p> </div> </div> </div> </div> </div> </div> </div> <footer id="footer"> <div class="container"> <p>企业培训 | 合作事宜 | 版权投诉</p> <p>苏ICP 备12345678. © 2009-2016 瓢城企训网. Powered by Bootstrap.</p> </div> </footer>
- CSS如下
@charset "utf-8"; body { font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei UI", "Microsoft YaHei", SimHei, "5B8B4F53", simsun, sans-serif; color: #666; } .logo { padding:0; } #myCarousel { margin: 50px 0 0 0; } #navbar-collapse ul { margin-top:0; } .carousel-inner img { margin: 0 auto; } /*.carousel-control { font-size: 100px; }*/ .tab-h2 { font-size: 20px; text-align: center; letter-spacing: 1px; color: #0059b2; } .tab-p { font-size: 15px; text-align: center; letter-spacing: 1px; color: #999; margin: 20px 0 40px 0; } .tab1 { margin: 30px 0; color: #666; } .tab1 .text-muted { color: #999; text-decoration: line-through; } .tab1 .media-heading { margin: 5px 0 20px 0; } .tab1 .col { padding: 20px; } .tab2 { background-color: #eee; padding: 60px 20px; text-align: center; } .tab2 img { width: 40%; height: 40%; } .tab3 { padding: 60px 20px; text-align: center; } .tab3 img { width: 65%; height: 65%; } .text h3 { font-size: 20px; } .text p { font-size: 14px; } .jumbotron { background-image: url(../img/bg.jpg); margin: 50px 0 0 0; color: #ccc; } .jumbotron h1 { font-size: 26px; padding: 0 0 0 20px; } .jumbotron h4 { font-size: 15px; padding: 0 0 0 20px; } #information { background-color: #eee; padding: 40px 0; } .info-content { background-color: #fff; margin: 0 0 20px 0; box-shadow: 2px 2px 3px #ccc; } .info-content img { margin: 12px 0; } .info-content h4 { color: #333; padding: 2px 0 0 0; font-size: 14px; } .info-content p { line-height: 1.6; } .info-right { background-color: #fff; box-shadow: 2px 2px 3px #ccc; } .info-right blockquote { margin: 0; padding: 0; } .info-right h2 { font-size: 20px; color: #333; padding: 5px; } .info-right h4 { color: #333; font-size: 16px; padding: 2px 0 0 0; line-height: 1.6; } #footer { background-color: #666; border-top: 1px solid #ccc; padding: 20px; text-align: center; color: #eee; } /*没有小于768px,是因为Bootstrap3以移动端优先设计*/ /* 小屏幕(平板,大于等于768px) */ @media (min- 768px) { .tab-h2 { font-size: 26px; } .tab-p { font-size: 16px; } .text h3 { font-size: 22px; } .text p { font-size: 15px; } .tab2-text { float: left; } .tab2-img { float: right; } .jumbotron h1 { font-size: 30px; } .jumbotron h4 { font-size: 16px; } .info-content h4 { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } } /* 中等屏幕(桌面显示器,大于等于992px) */ @media (min- 992px) { .tab-h2 { font-size: 28px; } .tab-p { font-size: 17px; } .text h3 { font-size: 24px; } .text p { font-size: 16px; } .jumbotron h1 { font-size: 33px; } .jumbotron h4 { font-size: 17px; } .info-content h4 { font-size: 18px; } } /* 大屏幕(大桌面显示器,大于等于1200px) */ @media (min- 1200px) { .tab-h2 { font-size: 30px; } .tab-p { font-size: 18px; } .text h3 { font-size: 26px; } .text p { font-size: 18px; } .jumbotron h1 { font-size: 36px; } .jumbotron h4 { font-size: 18px; } .info-content h4 { font-size: 20px; } }
- 结果如下,大屏幕
- 其他屏幕如下