繁体   English   中英

angular中使用卡片时如何将页脚放置到页面底部一个大小

[英]How to place the footer to the bottom of the page a size when using a card in angular

我正在使用一张卡片,在卡片之后我放了我的页脚。 但是与 css 中提到的相比,页脚的尺寸非常大。

图片 -

在此处输入图像描述

代码 -

app.component.html -

<div class="card" id="card-css">
    <div class="card-body">
  //code

    </div>
  </div>

  <hr class="line" color="#f5821f;" />

  <div class="footer text-right" style = "height:50px !important" >
    <label style="color: black">© 2018 ICICI. API Developer</label>
  </div>

app.component.css

html, body {
  height: 100%;
}

.footer {
  position: relative;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: white; 
   color: black;
   text-align: center; /* .push must be the same height as .footer */
   }

如果我的问题是正确的,那么我认为您希望您的页脚位于页面底部。 为此,您只需要更改您的波纹管 css。

position: relative

position: fixed;
margin:10px;

对于文本大小,您可以根据需要添加以下 css。

font-size: 25px;

暂无
暂无

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

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