【发布时间】:2018-09-18 00:23:49
【问题描述】:
我是 bootsrtap-4 的新手,我正在使用 bootstrap-4 在 HTML 中设计一个页面,但是在使其响应时遇到一些问题,它应该可以在例如笔记本电脑-L、笔记本电脑-M 和 i-padd 中工作,而设计它,它只适用于笔记本电脑-L 而不是 M 尺寸和 i-padd,有人可以看到我的代码并告诉我应该怎么做来设计这个页面。
这是我的代码:
<div className="row">
<div className="col-md-10">
<div className="row">
<div className="col-md-4">
<div className="fontStyle">
<span className="">1</span>
<!-- <div className="displayBlk"> -->
<label type="text">Select Technology</label>
<select value="" className="selectpicker btn btn-labeled btn-start">
<option value="">None Selected</option>
<option value="">Hello </option>
<option value="">World </option>
</select>
<!-- </div> -->
</div>
</div>
<div className="col-md-4 rowOne">
<div className="fontStyle">
Select Question Type
<button type="button" class="btn btn-primary btn-sm">Code Type</button>
<button type="button" class="btn btn-default btn-sm">Non Code Type</button>
</div>
</div>
<div className="col-md-4">
<div className="fontStyle">
Number Of Questions
<select value="" onChange="" className="selectpicker btn btn-labeled btn-start">
<option value="">Select</option>
<option value="">01</option>
<option value="">02</option>
</select>
</div>
</div>
</div>
<!-- end of 10 col row -->
</div>
<div className="col-md-2">
<span className="">
<button type="button" class="btn btn-outline-primary btn-sm">Reset</button>
</span>
<span>
<button type="button" class="btn btn-primary btn-sm">+</button>
</span>
</div>
</div>
<!-- end of main row -->
在 L 尺寸屏幕中显示的第一个屏幕:
在 M 尺寸屏幕中显示的第二个屏幕:
我正在寻找的实际输出:
谁能指导我如何实现这个设计。
感谢您的帮助!
【问题讨论】:
标签: html css responsive-design bootstrap-4