【发布时间】:2020-12-01 18:45:38
【问题描述】:
我想创建一个响应式布局,就像下图一样,带有 bootstrap 4 或其他支持。 (全屏)
这是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<link href="~/Content/StyleSheet1.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<div class="flex-row">
<div class="col" style="background-color: blue;">Header</div>
</div>
<div class="flex-row">
<div class="col-md-4" style="background-color: orange;">Left Nav</div>
<div class="col" style="background-color: gray;">Content</div>
</div>
<div class="flex-row" style="background-color: green;">
Footer
</div>
</div>
@RenderBody()
</body>
</html>
.container
{ height: 100%;
width: 100%; }
对此有什么想法吗?
附言我使用 VS2019
【问题讨论】:
标签: html bootstrap-4