javascript - 使用角度卡片时如何将页脚放置在页面底部的大小
问题描述
我正在使用一张卡片,在卡片之后我放了我的页脚。但是与 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;
推荐阅读
- apache-spark - 通过 spark 数据框将整行作为参数传递给 spark udf - 抛出 AnalysisException
- javascript - 函数组件不能有引用。你的意思是使用 React.forwardRef() 吗?
- python - 在 DataFrame 中使用 dask 进行有效的条件成对行操作的正确方法
- javascript - 从获取请求中发出获取请求
- rasa-nlu - 是否可以直接根据实际数据进行训练?
- math - 将错误状态代码中的字节标志转换为 int
- r - R中具有极小值的算术
- mobaxterm - 如何在 Mobaxterm 中关闭语法高亮
- javascript - Fullcalendar V4 通过 documentId 获取初始化日历
- python - NLP - 使用哪种技术对段落标签进行分类?