【问题标题】:simple text align center not working [closed]简单的文本对齐中心不起作用[关闭]
【发布时间】:2015-09-03 01:03:51
【问题描述】:

为什么这个简单的东西对我不起作用?其他一切正常

<style>

 #the_footer{

    text-align:right;

}

</style>

<body>

<footer id"the_footer">

Made by engineer

</footer>

</body>

【问题讨论】:

  • id"the_footer" -> id="the_footer" ?
  • 哈哈,那是我糟糕的一天,没有注意到:D 我认为最好删除这个问题
  • 哈哈哈,你的标题也和你的 CSS 不匹配——全都出错了 ;)

标签: css html text alignment


【解决方案1】:

代码对我来说很好用。把id= "the_footer"

【讨论】:

    【解决方案2】:

    试试这个

    .footer {
      text-align: right;
    }
    <body class='Footer'>
      <footer>Made By Engineer</footer>
    </body>

    【讨论】:

      猜你喜欢
      • 2015-07-16
      • 1970-01-01
      • 2014-03-22
      • 1970-01-01
      • 1970-01-01
      • 2017-07-28
      相关资源
      最近更新 更多