Bootstrap 4 的空白属性

Ism*_*ooq 4 html css bootstrap-4

我一直在尝试找到与 CSS 属性等效的引导程序"white-space: break-spaces",但我似乎找不到。

我的问题是,在屏幕的移动视图中,按钮会从视图中消失,因为其中的文本很长。

这是我的按钮

<button class="btn btn-primary mt-3" id="send_sms_btn" type="submit">Verify &amp; Submit Withdrawal</button>
Run Code Online (Sandbox Code Playgroud)

应用于元素的 CSS 属性工作正常,但我只能使用 bootstrap。有什么建议么?

Cha*_*har 7

尝试将.text-break类添加到按钮

<button class="btn btn-primary mt-3 text-break" id="send_sms_btn" type="submit">Verify &amp; Submit Withdrawal</button>
Run Code Online (Sandbox Code Playgroud)

文本中断参考链接