简体   繁体   English

为什么浮动权不起作用也很重要?

[英]why float right is not working also used important?

I have three image buttons in my header which is in right side as show in image ,I am trying to add three buttons on header .But it is not taking float:right and margin-right .I need to make like this please check image ![enter image description here][1] 我的标题中有三个图像按钮,位于图像的右侧,我试图在标题中添加三个按钮。但是它没有采用float:rightmargin-right 。我需要像这样进行检查,请检查图像![在此处输入图片描述] [1]

I have "+" and search and funnel image on right side .so to make this button on right side ? 我在右侧有“ +”号,并在其中搜索和收集图片。因此要在右侧设置此按钮? here is my plunker 这是我的朋克

<ion-header-bar align-title="" class="bar-balanced">
  <a class="button button-clear  icon-right ion-chevron-right ">
  </a>

  <h1 class="title">Title!</h1>
  <div style="float:right!important;border:1px solid red ;margin-right:10px">
  <a class="button button-icon icon ion-plus"></a>
  <a class="button button-icon icon ion-search"></a>
  <a class="button button-icon icon ion-funnel"></a>
  </div>

</ion-header-bar>

Replace float:right with position: absolute; float:right替换为position: absolute; right: 10px;

http://plnkr.co/edit/u89uQlz7VOGiznLmAoDj?p=preview http://plnkr.co/edit/u89uQlz7VOGiznLmAoDj?p=preview

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

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