粘滞CSS位置无法正常工作

时间:2019-02-21 09:14:00

标签: html css

我试图留下粘性图像,但它不起作用,如果我将位置更改为固定(如果保持不变),可能会发生什么情况?

HTML代码:

public BankAcc(String accountName, int accountNumber, float accountOverdraft, float currentBalance) {
    this.accountName = accountName;
    this.accountNumber = accountNumber;
    this.accountOverdraft = accountOverdraft;
    this.currentBalance = currentBalance;
}

CSS代码:

<div class="container">
    <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
             <!-- mini nav -->

             <!-- The problem - banner -->
              <div class="sticky-div hidden-xs">
                <img src="" class="img-responsive">
              </div>
        </div>
        <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
              <!-- Content... too long -->
         </div>
     </div>
  </div>

我试图将父对象溢出:隐藏;显示:阻止...

但是它不起作用:(

0 个答案:

没有答案