我有一个带有固定标题的 Wordpress 网站。我的内容页面根据客户的要求使用锚链接。单击锚链接时,页面将加载从固定标题后面开始的内容。我需要想办法在固定页眉的高度上放置一个永久边距。
此处示例: http ://www.zachkeller.net/cp_site/approach/#insights
目前,在我的 WP 文本编辑器中,我设置了这个 html 来说明部分标题:
<div id="method">
<div class="sectionheader">
<h1 class="sectiontitle">method</h1>
</div>
Consensus Point works with research organizations and large institutions to elicit knowledge from communities to predict future outcomes and preferences. Our unique market algorithm, gaming techniques, and social platform provide a more engaging way for consumers and experts to be rewarded for their performance and participation.
<p style="text-align: center;"><a href="http://www.zachkeller.net/cp_site/wp-content/uploads/2013/08/how_to_play.jpg"><img class="aligncenter size-full wp-image-229" alt="How to play" src="http://www.zachkeller.net/cp_site/wp-content/uploads/2013/08/how_to_play.jpg" width="661" height="172" /></a></p>
Our platform, Huunu, is different from traditional research in that respondents are not forced to answer any questions and are able to weight their answers based on their confidence. It is the process of self-selection and weighting based on confidence that gives the market its accuracy.
</div>