无法在移动网站的iPhone Safari中突出显示/复制文字 [英] Unable to highlight/copy text in iPhone Safari on mobile site

查看:150
本文介绍了无法在移动网站的iPhone Safari中突出显示/复制文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我正在iPhone上测试的移动网站,与大多数其他网站不同,我无法在屏幕上按住我的手指,以显示复制菜单(使用可拖动手柄选择要复制的区域)。

I have a mobile site which I'm testing on the iPhone, and unlike most other sites, I'm not able to hold my finger on the screen to get the 'copy' menu to appear (with the draggable handles to select an area to copy). Nothing happens at all on my site.

我已尝试将以下内容添加到样式表,但没有任何区别:

I've tried adding the following to my style sheet but it hasn't made any difference:

-webkit-user-select:text;

-webkit-user-select: text;

我还应该在我的样式表和页面中声明head:

I should also state that I have the following also in my style sheet and within the page head:

-webkit-text-size-adjust:none;

-webkit-text-size-adjust: none;

我有这些,因为我不希望内容是可扩展的,只是希望内容可以100%的设备宽度。

I've got these as I didn't want the content to be scalable, and just wanted the content to span 100% of the device width.

上述任何一个的实现会导致网站上缺少可选择的文本吗?出于兴趣,我尝试了flickr移动网站,这也是不可扩展,使用100%的设备宽度像我的网站,也似乎没有出现可拖动/选择区域复制,当你握住你的手指

Would the implementation of any of the above be causing the lack of selectable text on the site? Out of interest, I tried the flickr mobile website which also is not scalable and uses 100% of the device width like my site, and that also doesn't seem to come up with the draggable/select area for copying when you hold your finger on some text.

有没有人知道为什么这是或我如何使文本内容(或任何内容实际上)可选择复制/粘贴?

Does anyone have any idea why this is or how I can make the text content (or any content actually) selectable for copying/pasting?

感谢

推荐答案

有任何元素可能会覆盖项目他们等?一个Z-索引问题,也许?

are there any elements that may be obscuring the items by overlaying them, etc? a z-indexing issue, perhaps?

这篇关于无法在移动网站的iPhone Safari中突出显示/复制文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆