创建垂直按钮栏

时间:2018-08-30 07:29:03

标签: html css twitter-bootstrap-3 kendo-ui responsive-design

我创建了一个垂直按钮,该按钮贴在屏幕的右侧,但问题是该按钮没有响应,因此可以使该按钮响应。我正在使用引导程序3 这是按钮的示例代码。

HTML

修改

我有一个kendo scheduler,我正在尝试将按钮对准此kendo scheduler的右侧

  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-left: -1%;">
    <div kendo-tooltip k-content="vm.theContent" k-filter="'.k-event'" class="k-group" style="background:white;border-top: 2px solid #b1b1b1;">
      <div id="scheduler" kendo-scheduler="vm.scheduler" k-options="vm.schedulerOptions" k-rebind="vm.schedulerOptions">
         <!--something--->
      </div>
    </div>
  </div>

<div class="col-lg-offset-11 col-lg-1 col-md-1 col-sm-1 col-xs-1 vertical-bar" >
   <button class="btn btn-info btn-sm vertical-btns">
     <i class="fa fa-angle-double-up" style="font-size:24px;"></i>
    </button><br>

    <button class="btn btn-info btn-sm vertical-btns">
     <i class="fa fa- angle-double-down" style="font-size:24px;" ></i> 
    </button> 
</div>

css

.vertical-bar{
  top: 36.6%;
}

.vertical-btns{
  padding: 11px 10px    !important;
  line-height: 17.6em   !important;
}

1 个答案:

答案 0 :(得分:1)

您可以像这样使用btn-group-vertical的引导程序类:

 <div class="btn-group-vertical">
      <div class="col-lg-offset-11 col-lg-1 col-md-1 col-sm-1 col-xs-1 vertical-bar" >
    <button class="btn btn-info btn-sm">
     <i class="fa fa-angle-double-up" style="font-size:24px;"></i>
    </button><br>

    <button class="btn btn-info btn-sm">
     <i class="fa fa- angle-double-down" style="font-size:24px;" ></i> 
    </button> 
</div>
    </div>