[Click to copy 1] <pre class = "code" rows = 2 id = "txtTestCode1" style = "width: 500px; font-family: Verdana, Arial; font-size: 12px; height: 55px; border: 1px solid #999999; "> copy content 1 </textarea> [Click to copy 2] <pre class =" code "rows = 2 id =" txtTestCode2 "style =" width: 500px; font-family: verdana, Arial; font-size: 12px; height: 55px; border: 1px solid #999999; "> copy content 2 </textarea> [Click to copy 3] <pre class =" code "rows = 2 id =" txtTestCode3 "style =" width: 500px; font-family: verdana, Arial; font-size: 12px; height: 55px; border: 1px solid #999999; "> copy content 3 </textarea>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
The following content mainly applies textarea as the content carrier. For div and so on, innerText is required for direct webpage marking. However, firefoxfirefox does not support innerText, so we need to consider how to make firefox support innerText, in this way, you can achieve it perfectly. For specific code, refer to the functional code of the script house.
The next article describes how to enable firefox to support the innerText implementation code.