创建一个响应式网站,由于某种原因,当进入移动视图时,"组织"标题不居中。
由于某些原因,它无法识别扩展的S,也不会居中。
图像
<div class="container">
<h2>London</h2>
<p>London is the most populous city in the United Kingdom,
with a metropolitan area of over 9 million inhabitants.</p>
</div>
将css添加到此容器中,例如
.container{
text-align:center;
}
这将是一个响应代码,因此它也将在移动视图中与中心对齐。