鍍金池/ 問答/HTML/ 怎么移動iView中的Button的位置?

怎么移動iView中的Button的位置?

使用iView,我有一個模態(tài)層:

 <Modal
      v-model="loginModal"
      title="登錄"
      width="400"
      @on-ok="ok"
      @on-cancel="cancel">

      <Tabs>
        <TabPane label="手機登錄" icon="ios-telephone">
          <i-input v-model="tel" clearable placeholder="請輸入電話" style="width: 300px"></i-input>
          <i-input v-model="password" clearable placeholder="請輸入密碼" type="password" style="width: 300px"></i-input>
          <i-checkbox >是否記住密碼</i-checkbox>
          <i-button class="forget-pwd" type="text">忘記密碼?</i-button>

        </TabPane>

        <TabPane label="郵箱登錄" icon="ios-email">
          <i-input v-model="email" clearable placeholder="請輸入郵箱" style="width: 300px"></i-input>
          <i-input v-model="password" clearable placeholder="請輸入密碼" type="password" style="width: 300px"></i-input>
        </TabPane>
      </Tabs>

    </Modal>

圖片描述

請問怎么樣我的忘記密碼?按鈕才能右移到指定位置呢?

我試過:

.forget-pwd {
  float: right;
}

或者:

.forget-pwd {
  margin-left: 20px;
}    

都不行。

回答
編輯回答
孤酒

大哥我們換個思路,寫兩個忘記密碼右擊的時候這個隱藏,那個顯示。是不是更簡單些。

2018年5月17日 02:48
編輯回答
半心人

給個定位試試

2018年4月2日 18:47