IE8 iframe DesignMode loses selection

前端 未结 3 1486
青春惊慌失措
青春惊慌失措 2021-01-05 18:28

The example below is a simple example of an iframe which uses window.parent.[turn designmode on] (this works). In FF all is well, but in IE8 (surprise surprise) any selectio

3条回答
  •  长情又很酷
    2021-01-05 19:07

    On any element in the main document you want not to break the iframe selection, add unselectable="on".

    For example:

    Bold

提交回复
热议问题