CSS 如何使用语义 UI 右对齐按钮
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37966397/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to align button right using Semantic UI
提问by Andrey Ischencko
I need segment with text(inside <p>
), and button on next row on the right
我需要带有文本(内部<p>
)的段,以及右侧下一行的按钮
I try next markup, but it seems not working properly( button overflow segment border):
我尝试下一个标记,但它似乎无法正常工作(按钮溢出段边框):
<div class="ui container">
<div class=" ui segment">
<p> Some Text.</p>
<button class="ui right floated primary button"> Some Action</button>
</div>
</div>
How to do it, using semantic-ui framework?
如何做到这一点,使用语义用户界面框架?
回答by Andrey Ischencko
I found an answer:
我找到了一个答案:
Just change segment class from ui segment
to ui clearing segment
只需将段类从 更改ui segment
为ui clearing segment