在bootstrap4中,我们使用pl-5作为左填充,在bootstrap5中,它不起作用。
<div class="col-md-6 col-9 p-3 pl-5"> in bootstrap5 this code is not working发布于 2021-07-27 16:49:50
根据to the documentation的说法,类名是ps-或pe- ...表示开始/结束,而不是向左或向右。
原因是,如果您从RTL切换到LTR站点,您的填充仍然会从正确的一侧应用。
<div class="ps-2">I have a padding left on LTR and a padding right on RTL languages</div>https://stackoverflow.com/questions/68541706
复制相似问题