php 重力表格在提交时锚定到页面的某些部分

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 重力表格在提交时锚定到页面的某些部分相关的知识,希望对你有一定的参考价值。

/**
*
* add to functions.php
*
* when contact form page sumbits, scroll to point on page
* '_ID' can be appended to 'gform_confirmation_anchor' in order to target a certain form. replace ID with the form's ID
* '200' is the number of pixels to offset from the top of the form's container to top of the page
* eg: 200 would anchor 200px above form's container on sumbit
*/

add_filter( 'gform_confirmation_anchor', function() {
    return 200;
} );

/**
* To disable from GF from scrolling anywhere after ajax submit, use this instead
* again, '1' denotes the form's ID
* use 'gform_confirmation_anchor' to target all forms
**/

add_filter('gform_confirmation_anchor_1', '__return_false');

以上是关于php 重力表格在提交时锚定到页面的某些部分的主要内容,如果未能解决你的问题,请参考以下文章

在 UINavigationController 中定义自定义过渡动画器时锚定键盘,如 iMessage 应用程序

如何使节标题锚定到多节表格视图的顶部?

锚定到 div 以转到 div 上方的某个点以允许固定标题 [重复]

轮播在图像更改时不断锚定到页面顶部

如何在不破坏响应性的情况下将 <div> 锚定到表格单元格的左下角?

javascript 找到页面上的所有标题,使用他们的ID锚定到他们的位置并使用选项填充下拉列表