css - 溢出隐藏在反应带中
问题描述
在 bootstrap 4 文档中,有元素overflow-hidden
和overflow-auto
类,但reactstrap
如果我尝试这个:
<Col xs={3} className="overflow-hidden">
<Sidebar/>
</Col>
那col
不明白overflow: hidden
。如何在中使用overflow-{}
类reactstrap
?
UPD:似乎该类不存在:
解决方案
您可以使用带有 reactstrap 的引导类,如下所示:
安装以下依赖项
npm install --save bootstrap@4.2.1
npm install --save reactstrap
在您喜欢使用 Bootstrap 4 类的组件中添加以下行:
import 'bootstrap/dist/css/bootstrap.css';
推荐阅读
- scrapy - Python:使用 CrawlSpider 的 Scrapy-Splash 递归爬行不起作用
- linux - eth0(modem usb)和wlan0(wifi模块)互连
- google-app-maker - 在 AppMaker 上的客户端和服务器端之间共享源文件
- python - 如何在类下调用函数外的参数值?
- ionic-framework - Ionic V4 离子返回按钮更改选项卡
- android - Ionic - Android 后台的 Firebase 推送通知
- javascript - 函数内的 Youtube api 不起作用
- inno-setup - 在开始菜单子文件夹中创建快捷方式图标?
- sql - 如何从 ASP.NET Web API 执行(调用)存储过程?
- django-models - Django执行存储过程 - 不同的数据类型,多个参数和来自模型的不同列