bootstrap-4 - Visual Studio 或(可能)Razor 中不一致的 flex-grow-1 行为?
问题描述
我在 codeply 中测试了以下样式,它按照 Bootstrap 的说明工作,但是当我将此代码移动到 Razor 组件(Blazor)时。flex-grow-1 根本不起作用。
我打开 bootstrap.min.css,它说它是 4.3.1,所以从技术上讲,我拥有我需要的一切。Blazor 服务器是否覆盖了 Bootstrap 布局?
<div class="container-fluid p-0 d-flex flex-column h-100">
<div class="navbar">
<label class="navbar-brand">MAP</label>
</div>
<div class="content flex-grow-1" style="background-color:yellow">
hello
</div>
解决方案
I changed the h-100 to min-vh-100 and it works...despite that codeply frowns on the change.
推荐阅读
- php - PHP数组坏了?$输出=''; $输出['id']
- node.js - 请求的资源上不存在“Access-Control-Allow-Origin”标头。节点快速获取
- python-3.x - 排列列表以输出等距点
- postgresql - 在创建 REST API 以将数据存储在数据库中时,如何在 Spring Boot 中将我的表列分布在多个类中?
- python - Tensorflow '_pywrap_tensorflow_internal' 模块错误
- c# - 我无法绑定树视图上的 IsExpanded 属性
- python - 在多个条件下在 For 循环中过滤 pandas DataFrame 的更快方法
- react-native - 在我的博览会反应原生应用程序中添加飞溅时出错
- docker - 为什么我在 docker 网络示例中看到 172.22.0.3?
- django - Django 从 ManyToManyField 表单中获取对象的数据