jQuery - execCommand(“insertUnorderedList”,false,null); - Internet Explorer的不同行为

时间:2012-02-10 12:49:31

标签: javascript jquery

execCommand("insertUnorderedList", false, null);

在div-tags中切换项目符号。

它运作得很好。但是使用Internet Explorer,当切换回“无子弹”时,文本字体会变小。为什么?我该怎么做才能防止这种情况?

提前致谢。

1 个答案:

答案 0 :(得分:-2)

我在IE上遇到了同样的问题,1天就得到了我的时间。这对我有用

 setTimeout(function(){ execCommand("insertUnorderedList", false, null); },100);
相关问题