行业新闻

    wordpress固定链接设置Html Wordpress 锚链接调整固定标题的边距

    2022-07-07    来源:www.8001717.cn

    Html 锚链接调整固定标题的边距

    Html锚链接调整固定的边距,html,css,,fixed,Html,Css,,​​Fixed,我有一个固定的网站。我的内容页面应客户请求使用锚链接。单击锚链接时wordpress固定链接设置,页面加载的内容从固定标题后面开始。我需要想办法在固定标题的高度上放置一个永久边距示例如下:目前wordpress做网站,在我的 WP 文本编辑器中,我设置了这个 html 来说明部分标题:

    我有一个固定标题的网站。我的内容页面应客户请求使用锚链接。单击锚链接时wordpress做网站,页面加载的内容从固定标题后面开始。我需要想办法在固定页眉的高度上放置一个永久边距

    例子:

    目前,在我的 WP 文本编辑器中,我设置了这个 html 来说明部分标题:

    method

    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.

    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.

    
    方法
    Consensus Point与研究机构和大型机构合作,从社区中获取知识,预测未来的结果和偏好。我们独特的市场算法、游戏技术和社交平台为消费者和专家提供了一种更具吸引力的方式,以奖励他们的表现和参与。
    

    我们的平台Huunu不同于传统的研究,因为受访者不必回答任何问题,并且能够根据他们的信心对答案进行加权。正是基于信心的自我选择和加权过程使市场具有了准确性。

    你愿意用吗

    我最终在设置自己的固定标头时使用了这种技术。主要有两个原因:

    1) iOS 支持。位置:iOS 设备上没有真正的固定支持

    2)您可以指定偏移量来准确解决您遇到的问题

    如果你不想使用。唯一的 CSS 解决方案是为锚链接分配一个类

    
    a.offset{
        display: block;
        position: relative;
        top: -125px; //at least the negative height of your header
        visibility: hidden;
    }
    

    
    a、 抵消{
    显示:块;
    位置:相对位置;
    top:-125px;//至少是页眉的负高度
    可见性:隐藏;
    }
    

    我正在尝试将此插件添加到 WPwordpress固定链接设置,但遇到了问题。您能否提供任何详细信息来帮助解决问题?

    文章来自互联网,侵权请联系删除,文章阐述观点来自文章出处,并不代表本站观点。 www.8001717.cn



X