简体   繁体   English

如何关闭uiwebview中的菜单

[英]How can I turn off the menu in uiwebview

I want to disable the menu in uiwebview 我想禁用uiwebview中的菜单

在此处输入图片说明

您可以在html页面上禁用触摸功能,也可以执行自己的操作,请查看本文http://www.icab.de/blog/2010/07/11/customize-the-contextual-menu-of-uiwebview/

Add this code in your CSS file :
* { -webkit-user-select: none; }
* { -webkit-touch-callout: none; }

We have added this code 我们已添加此代码

Link 链接

Within the file index.html 在文件index.html中

And it succeeded 它成功了

  • I apologize my weak English 我为我的英语不好道歉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM