How to make text created with CSS :after Element selectable?

江枫思渺然 提交于 2021-02-10 07:12:57

问题


i'm creating text with css :after. But I'm not able to select the resulting text (e.g. for copy&paste). is it possible to make it selectable?

<div>foo</div>

div:after{
    content: '   123';

}

sample


回答1:


As far as I know, this has been a long-running issue that is still not resolved. This bug thread, which is still current, goes back to 1999!

https://bugzilla.mozilla.org/show_bug.cgi?id=12460



来源:https://stackoverflow.com/questions/16851781/how-to-make-text-created-with-css-after-element-selectable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!