我有这个html使用
bootstrap 4 utilities将按钮拉到屏幕右侧.它确实这样做了.
但是,按钮不会按预期方式下推其下方的内容.它们最终叠加在下面的内容之上.
如果我不使用pull-xs-right,那么按钮会保持对齐,但是它们会推动下面的项目.
我需要申请其他课程吗?
<div class="pull-xs-right"> <button click.delegate="saveEdit()" type="submit" class="k-button k-primary"> Save </button> <button click.delegate="cancel()" class="k-button"> Cancel </button> </div>
解决方法
在Bootstrap 4 .float- {sm,md,lg,xl} – {left,right,none}类中为响应浮点数添加了类,并替换了.pull-left和.pull-right.
这意味着:
.pull-right被.float-right取代
.pull-left被.float-left取代
.pull-xs-right是错误的,将.pull替换为.float拉和右之间的xs表示超小,这决定了元素的大小.以下是更改元素大小的选项:{xs,sm,xl}其中xs = extra small,sm = small,md = medium,lg = large和xl = extra large
原文地址:https://www.jb51.cc/css/217601.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。