Can';t在WordPress中居中放置我的自定义标题
我已经为我的WordPress主题添加了一个自定义标题,但我无法将其置于中心。我想将位置设置为底部中心,但我添加的CSS不会覆盖它。改变位置的正确方法是什么 谢谢Can';t在WordPress中居中放置我的自定义标题,wordpress,header,Wordpress,Header,我已经为我的WordPress主题添加了一个自定义标题,但我无法将其置于中心。我想将位置设置为底部中心,但我添加的CSS不会覆盖它。改变位置的正确方法是什么 谢谢 试试这段代码。 Try this code. <div> <header class="site-header" itemscope="" itemtype="http://schema.org/WPHeader" style="width: 50%; margin: 37px auto 0px;">
试试这段代码。
Try this code.
<div>
<header class="site-header" itemscope="" itemtype="http://schema.org/WPHeader" style="width: 50%; margin: 37px auto 0px;">
<div class="wrap">
<div class="title-area">
<h1 class="site-title" itemprop="headline">
<a href="http://meynedesign.com/floral/">Floral Theme</a>
</h1>
</div>
</div>
</header>
</div>