【发布时间】:2014-03-03 06:25:16
【问题描述】:
我正在写a website page,我想要这个:
当屏幕宽度太小时,假设您正在通过手机观看。我希望页面上只有文本(导航栏除外),没有背景图像,并且应该调整字体大小以固定屏幕大小。
现在html代码有很多类,所以我的一个想法是通过手机浏览时禁用这些类(有很多)。
我的一些代码:
<section class="box">
<img src="images/background2.jpg" class="img-responsive hidden-xs" alt="">
<div class="carousel-caption text-background">
<h1>Do you love to scuba dive? Are you looking for your next bid dive event?</h1>
<h5>Look no further. Join ABI and other experienced divers throughout the year as we travel to amazing ocean resort destinations for state of the art diving experiences. Each trip will include
multiple dives operated by experienced dive companies. All proceeds from these diving excursions will benefit the ABI Endowment Fund<a href="http://endowment.abi.org" target="_blank"> endowment.abi.org</a>
Do something you love while supporting the ABI Endowment Fund. Get more information about ABI's upcoming dive excursions.</h5>
</div>
</section>
【问题讨论】:
标签: html css twitter-bootstrap mobile responsive-design