模态窗口下,一般内容是无法选中和复制的,只有input和textarea的内容可以选中和复制; 为了使一般的内容也可选中复制,使用div,且设置属性contentEditable="true" 如下: ....