IE的pre标签使用innerHTML会使white-space不正常,基本上就是pre标签跟div标签一样了。

要注意!可以用div来模拟pre。

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *