1. 是否复制应有单独的CSS属性控制,即 user-select
http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/css/property/-webkit-user-select
https://developer.mozilla.org/en/CSS/-moz-user-select
2. DOM的textContent等属性不应该能读取到content的内容。
3. DOM如果要获取这部分内容可以用getSelection()。
2011/5/31 Ethan Chen <chief@ethantw.net>
>
> 在 2011/5/31 上午4:03 時, Ethan Chen 寫到:
>
> >
> > 在 2011/5/31 上午12:04 時, Timothy Chien 寫到:
> >
> >> 問一下,你要問的問題是啥?
> >>
> >> 1) content 產生的內容是否為 DOM 的一部分
> >> 2) content 產生的內容是否可被複製
> >> 3) 兩個都要問
> >
> >
> >
> 應該是兩者都有吧,雖然把東西掛上DOM好像有點不切實際,但如果content所生內容可以被複製,用JS(比如XXX.innerHTML)卻選不到的話,好像也蠻奇怪的?
>
>
> 這裡應該是指textContent或innerText,一時沒多想就發出去了,不好意思。
>
>
>
>
>
>
>
> Best Wishes,
> Ethan
>
> Mandarin: Chen Yijun
> Hoklo: Tan I-kun
> Cantonese: Can Jik-guan
>
> http://ethantw.net/
> http://twitter.com/ethantw/
>
>
>