surroundContents (), this will allow you to surround the range with an element. For example, lets say I select the sentence above, and create an h1 element ...
確定! 回上一頁