我正在应用orderedlist,然后在框架中使用exec命令应用justifycenter。这样做只在IE11中的文本之间获得一些空格。任何解决方案?
Code:
<iframe id="myFrame" runat="server"></iframe>
<input type=”button” id=”but1” onclick=”iframecommands()”/>
<script>
function iframecommands(){
var oDocument = $get('<%=this.myFrame.ClientID%>').contentDocument;
oDocument.execCommand(“insertorderedlist”, false, null);
oDocument.execCommand(“justifycenter”, false, null);
}
</script>