【问题标题】:Put <h1> tag in a corner把 <h1> 标签放在角落里
【发布时间】:2017-10-16 23:32:41
【问题描述】:

所以我想在右下角放一个 h1 标签。我目前拥有的如下;但是,这非常乏味,我希望它始终在角落里。目前我这样做的方式是基于我的计算机屏幕,但如果有人使用具有不同尺寸屏幕的计算机,那么标签将不在正确的位置。有没有其他方法可以做到这一点,以便所有尺寸显示器的标签都在同一个位置?

.subH {
  font-family: Sedgwick Ave Display;
  font-size: 10px;
  padding-top: 505px;
  padding-left: 1170px;
  color: white;
}
&lt;h1 class='subH'&gt;Created by Hybrid Alpaca Game Studios&lt;/h1&gt;

【问题讨论】:

标签: html css


【解决方案1】:

使用position: fixed

示例:

h1 {
position: fixed;
bottom 6px;
left: 6px;
}

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2014-03-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-01-13
  • 2011-09-09
  • 2011-03-03
  • 2019-09-17
相关资源
最近更新 更多