html - 页脚栏无法对齐文本

标签 html css

嘿,我页面底部的页脚栏无法对齐文本。

这是我的 html:

  <div class="row">
    <div id="footer">
    <h3>Contact</h3>
    <h3>Computerbasen</h3>
    <h3>Info</h3>
    </div>
  </div>

这是我的 CSS:

#footer {
    background-color: #FF7633;
    width: 100%;
    height: 50px;
    border-radius: 5px;
    padding-top: 10px;
    text-align:center;
    position: fixed;
    bottom: 0;
  }

Click here and see the image of the footer bar

最佳答案

你知道 html 中有一个页脚标签,试试这个:

<footer>
<h3>Contact</h3>
<h3>Computerbasen</h3>
<h3>Info</h3>
</footer>

footer {
  background-color: #FF7633;
    width: 100%;
    height: 50%;
    border-radius: 5px;
    padding-top: 10px;
    text-align:center;
    bottom: 0;
}

关于html - 页脚栏无法对齐文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43553044/

相关文章:

html - 如何使页面上的所有内容都变大?

javascript - 如何从 javascript 调用 url 并获取 url 到 javascript 的响应?

javascript - 如何将选择选项中的 2 个数字相乘并对结果求和

javascript - 将 CSS 注入(inject)指令

php - 除非浏览器最大化,否则无法单击网页上的按钮

html - 为什么我的移动设备仍将我的视口(viewport)视为桌面?

javascript - 如何让按钮每次按下时都会创建不同的文本?

css - 同一行上的元素,bootstrap

php - javascript:确认 submit() 是否完成重新加载页面的代码

css - 在网页中显示数据库中的数据