Html 我有一个困难的时间集中在标题下的图像在我的网站上

Html 我有一个困难的时间集中在标题下的图像在我的网站上,html,css,twitter-bootstrap-3,Html,Css,Twitter Bootstrap 3,我很难把“关于我”的标题集中在我的图片下面。我对HTML/CSS/JS不是很了解,谷歌搜索几个小时对我没有帮助。这是我的网站: 感谢您的帮助。谢谢大家! 编辑:谢谢你们,所有帮助过我的人!非常感谢:)您已将标题包装到具有相同父行的col。这就是为什么它在同一排 试试这个: <div class="row"> <h2 class="heading">About Me</h2> </div> <div class="row"> &

我很难把“关于我”的标题集中在我的图片下面。我对
HTML
/
CSS
/
JS
不是很了解,谷歌搜索几个小时对我没有帮助。这是我的网站:

感谢您的帮助。谢谢大家!


编辑:谢谢你们,所有帮助过我的人!非常感谢:)

您已将标题包装到具有相同父行的col。这就是为什么它在同一排

试试这个:

<div class="row">
  <h2 class="heading">About Me</h2>
</div>

<div class="row">
  <div class="col-md-8">
  <p>                 
  </p>
    <p>I will be graduating from Texas A&amp;M University at College Station in May 2020 with a BS in chemistry and minors in mathematics and physics. My aspirations are to earn a PhD in chemistry and eventually become a professor at an R1 research university. 
    In addition, I find that participating in mentorship is crucial because as a professor I aspire to not only be a good researcher but also a good teacher. For these reasons I am a mentor for a few organizations, such as the Science Leadership Scholars program and College Scholarship Leadership Access Program (CSLAP). Moreover, I am research advocate and am a undergraduate research ambassador for the LAUNCH office at Texas A&amp;M University.
    In my spare time I enjoy reading fiction, listening to music, and messing with computers.
    </p>
  </div>
</div>

关于我

我将从德克萨斯A&;M大学于2020年5月在学院站获得化学学士学位,未成年人获得数学和物理学士学位。我的抱负是获得化学博士学位,并最终成为R1研究型大学的教授。 此外,我发现参与导师制至关重要,因为作为一名教授,我不仅渴望成为一名优秀的研究人员,而且渴望成为一名优秀的教师。由于这些原因,我是一些组织的导师,如科学领导力学者计划和大学奖学金领导力获取计划(CSLAP)。此外,我是研究倡导者,也是德克萨斯州a&;M大学。 业余时间我喜欢读小说,听音乐,玩电脑。


我想它已经居中了。如果不是,为什么你觉得它不在中心,更多的解释会帮助我们给出更好的答案。

我做到了


将“关于我”放在不同的“行”中,并使用样式将文本对齐到中心:


关于我


您可以应用
文本对齐
样式使标题居中

<div class="row" style="text-align: center;">
  <h2 class="heading">About Me</h2>
</div>

您添加的“关于”部分完全错误。请删除代码并尝试此操作。 阅读这个引导程序


关于我

我将从德克萨斯A&;M大学于2020年5月在学院站获得化学学士学位,未成年人获得数学和物理学士学位。我的抱负是获得化学博士学位,并最终成为R1研究型大学的教授。 此外,我发现参与导师制至关重要,因为作为一名教授,我不仅渴望成为一名优秀的研究人员,而且渴望成为一名优秀的教师。由于这些原因,我是一些组织的导师,如科学领导力学者计划和大学奖学金领导力获取计划(CSLAP)。此外,我是研究倡导者,也是德克萨斯州a&;M大学。 业余时间我喜欢读小说,听音乐,玩电脑。


我希望“关于我”在我的图像下方居中,以及“关于我”标题下方居中的文本。而不是文本与“关于我”相邻时的显示方式。这有用吗?不幸的是,这不起作用。我的网站更新了您建议的更改,以防您想看到发生了什么!我可以通过在我的浏览器上检查它来查看发生了什么。在我的情况下,它起作用了,因为我没有取下包裹它的容器。我一直得到同样的东西。我用你告诉我的更新了我的网页,你认为你能告诉我我做错了什么吗。对不起,如果我是哑巴,但我正在努力学习,因为我去。非常感谢你!请添加一些您尝试的代码。
<div class="row" style="text-align: center;">
  <h2 class="heading">About Me</h2>
</div>
<div class="row">
  <div class="col-md-8 col-md-offset-2">
    <p>I will be graduating from Texas A&M University at College Station in May 2020 with a BS in chemistry and minors in mathematics and physics. My aspirations are to earn a PhD in chemistry and eventually become a professor at an R1 research university......
    </p>
  </div>
</div>