解决网页文字无法选中复制

解决网页文字无法选中复制

我们在查看一些网页时会遇到不能复制的问题,或者鼠标无法选中文字,导致不能复制。

如这个下面网页

解决:按f12,点击console控制台,输入以下代码后回车即可

1
2
3
4
var eles = document.getElementsByTagName('*');
for (var i = 0; i < eles.length; i++) {
eles[i].style.userSelect = 'text';
}

#
You forgot to set the qrcode for Alipay. Please set it in _config.yml.
You forgot to set the qrcode for Wechat. Please set it in _config.yml.
You forgot to set the business and currency_code for Paypal. Please set it in _config.yml.
You forgot to set the url Patreon. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×