小编use*_*769的帖子

将网页输入字段滚动到顶部防止软键盘隐藏

单击输入字段时,我在移动设备上使用了一个网页,当我单击输入字段时,Android 软键盘会隐藏输入字段,我希望该字段向上滚动以在键盘上方可见。

我搜索了很多文章,其中很多都提到了 Android 清单文件,但这是一个网页,而不是应用程序。我还尝试了各种 javascript 选项,包括下面的选项,但许多浏览器似乎不喜欢 .focus 事件。它适用于 chrome,但不适用于其他许多。

jQuery(function ($) {
        $("#Litres").focus(function () {
            document.body.scrollTop = $(this).offset().top;
        });
    });
Run Code Online (Sandbox Code Playgroud)

有没有人有一个简单的解决方案来实现网页的预期效果。?

javascript jquery android jquery-mobile

6
推荐指数
1
解决办法
4254
查看次数

无法访问 Magento 2.4.0 后端无法创建 acl 对象:无效文档

我正在测试升级到 Magento 2.4 但出现以下错误。我读到此错误可能与自定义扩展中缺少标题属性有关。为了尝试隔离问题,我从 /app/code/ 文件夹中删除了所有扩展,然后再次运行升级,编译过程,但即使删除了所有扩展,问题仍然存在。

知道如何调试吗?

1 exception(s):
Exception #0 (LogicException): Could not create an acl object: Invalid Document 
Element 'resource': The attribute 'title' is required but missing.
Line: 13


Exception #0 (LogicException): Could not create an acl object: Invalid Document 
Element 'resource': The attribute 'title' is required but missing.
Line: 13

<pre>#1 Magento\Framework\Acl\Builder\Proxy->getAcl() called at [vendor/magento/module-backend/Model/Auth/Session.php:229]
#2 Magento\Backend\Model\Auth\Session->processLogin() called at [vendor/magento/module-backend/Model/Auth.php:165]
#3 Magento\Backend\Model\Auth->login() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#4 Magento\Backend\Model\Auth\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#5 Magento\Backend\Model\Auth\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#6 Magento\Backend\Model\Auth\Interceptor->___callPlugins() …
Run Code Online (Sandbox Code Playgroud)

magento2 magento-2.3

3
推荐指数
1
解决办法
3609
查看次数