开发者

How can I write text that the clipboard sees but isn't visible?

Until recently I'd been using style=display:none on an image to do开发者_StackOverflow this with its alt text. That method is no longer working, so what can I do?


<span style="font-size: 0;">i should still be copied</span>

jsFiddle.


/* Fully transparent text */
color:rgba(0,0,0,0)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜