简体   繁体   English

引导按钮

[英]Bootstrap button

I'm using bootstrap to create a button that should be very big. 我正在使用引导程序来创建一个应该很大的按钮。 It has to have a text on the left, a picture in the middle and an arrow on the right side. 它的左边必须有文字,中间是图片,右边是箭头。

This is what it should look like 这就是它的样子

I've tried everything to put the initial text on the left side, it doesn't work. 我已经尽一切努力将初始文本放在左侧,但是它不起作用。 Does anybody have any experience with this? 有人对此有经验吗?

This is what my code looks like: 这是我的代码如下所示:

 .framework-title { color: deepskyblue; font-weight: bold; font-size: 120%; vertical-align: middle; } .btn-framework { color: #333; background-color: #fff; border-color: #ccc; width: 100%; margin: auto; } .btn-framework:hover { -webkit-filter: brightness(90%); -moz-filter: brightness(90%); -o-filter: brightness(90%); -ms-filter: brightness(90%); filter: brightness(90%); } 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <button type="button" class="btn btn-framework" data-toggle="collapse" data-target="#framework1" tyle="text-align:left !important; padding-left:6px !important;"> <span class="framework-title text-align:left !important; padding-left:6px !important;">Phase</span> <img src="images/analyze/1_phase.png" width="800px" style="margin-right: 0px;"> <span class="glyphicon glyphicon-menu-right" style="vertical-align: middle;"></span> </button> 

You could float it left and right? 你可以左右浮动吗? not exactly sure what you want :-D 不确定您想要什么:-D

 .framework-title { color: deepskyblue; font-weight: bold; font-size: 120%; vertical-align: middle; float:left; } .btn-framework { color: #333; background-color: #fff; border-color: #ccc; width: 200px; margin: auto; } .glyphicon-menu-right {float:right;} .btn-framework:hover { -webkit-filter: brightness(90%); -moz-filter: brightness(90%); -o-filter: brightness(90%); -ms-filter: brightness(90%); filter: brightness(90%); } 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <button type="button" class="btn btn-framework" data-toggle="collapse" data-target="#framework1" tyle="text-align:left !important; padding-left:6px !important;"> <span class="framework-title text-align:left !important; padding-left:6px !important;">Phase</span> <img src="images/analyze/1_phase.png" width="800px" style="margin-right: 0px;" alt="image1"> <span class="glyphicon glyphicon-menu-right" style="vertical-align: middle;"></span> </button> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM