CSS 如何使 bulma 按钮变为全宽?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41506165/
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
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 12:19:08 来源:igfitidea点击:
How can I make a bulma button goes full width?
提问by ira
I am using [email protected]css framework
我正在使用[email protected]css 框架
I have submit button within a form as follows
我在表单中提交按钮如下
...
<!--Submit button-->
<div class="columns">
<div class="column is-full">
<button type="submit" class="button is-primary">
<span class="icon"><i class="fa fa-sign-in"></i></span>
<span>Login</span>
</button>
</div>
</div>
...
The result is the following
结果如下
How can I make the button goes full-width ?
我怎样才能让按钮变成全角?
回答by Manuel Obregozo
Add the class is-fullwidth
添加班级 is-fullwidth
<button type="submit" class="button is-primary is-fullwidth">
<span class="icon"><i class="fa fa-sign-in"></i></span>
<span>Login</span>
</button>
回答by Pauls Bebris
is-fullwidth
did not work for me, but
is-overlay
did!
is-fullwidth
对我不起作用,但
is-overlay
确实如此!