【发布时间】:2016-08-31 13:06:25
【问题描述】:
我目前正在建立一个网站。我已经为网站设计了一个基本的定价图表(使用引导程序) 我遇到的问题是,当我调整窗口大小时,设计会错位。
这是目前设计的代码
<div class="background-pricing container-fluid">
<div class="container">
<div class="row">
<div class="payment-method">We accept: Cash and Checks with payment due on Fridays of each week.</div>
</div>
<!--infants and children -->
<div class="row">
<div class="infants-box col-sm-6 col-md-6 col-lg-6">
<div class="infants">Infants</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class="children">Children 2+</div>
</div>
</div>
<div class="row">
<div class="full-time col-sm-6 col-md-6 col-lg-2">Full Time</div>
<div class="prices-left-box col-sm-5 col-md-3 col-lg-5">
<div class="prices-left">$200 Per Week</div>
</div>
<div class="prices-right-box col-sm-5 col-md-3 col-lg-5">
<div class="prices-right">$150 Per Week</div>
</div>
</div>
<div class="row">
<div class="full-time col-sm-2 col-md-2 col-lg-2">Up to 4 Hours</div>
<div class="prices-left-box col-sm-5 col-md-5 col-lg-5">
<div class="prices-left">$125 Per Week</div>
</div>
<div class="prices-right-box col-sm-5 col-md-5 col-lg-5">
<div class="prices-right">$100 Per Week</div>
</div>
</div>
</div>
</div>
如您所见,在全屏模式下,图表清晰易读,但在调整大小时,图表不可读,“婴儿”和“2 岁以上儿童”并排显示。
如何让它更容易阅读?
【问题讨论】:
-
使用类即时 col-sm-6 col-md-6 col-lg-6 to col-xs-6
标签: html css twitter-bootstrap web