【发布时间】:2018-04-10 18:46:36
【问题描述】:
我试图在 HTML5 的两列中显示内容。但是,不知何故,我做错了什么。这是我的 HTML 代码
.column1 {
float: left;
width: 70%;
}
<div class="cd-admin-upper-container container-fluid">
<div class="row">
<div class="column1">
<h1>Device UnAssignment</h1>
<div>
<div class="alert alert-info" style="height : 50%; margin-bottom : 2vw;width: 40%">
<label class="cd-admin-create-modal-label">Patient Name: </label>
<label class="cd-admin-create-modal-label">Device Serial Number: </label>
</div>
<div>
<button type="submit" class="btn btn-primary" style="margin-left: 3%"
ng-click="unassignDevice(device.patientId);"><span title="UnAssign Device"></span> UnAssign
</button>
</div>
</div>
<div class="column2">
<h1>Device Assignment</h1>
<p>Hello this is column two</p>
</div>
</div>
</div>
</div>
这是 JSFiddle 链接 - http://jsfiddle.net/chandham/k39vpafd/
【问题讨论】:
-
.column2嵌套在column1中 -
哦,谢谢。愚蠢的错误!
-
没问题,陈 - 你应该直接关闭问题。
-
如何关闭问题?
-
看来您至少需要 250 个代表点才能结束您自己的问题(请参阅:meta.stackexchange.com/questions/37752/…),但您应该仍然可以删除它,请参阅:meta.stackexchange.com/questions/63983/…
标签: css html two-column-layout