2012-07-18 22 views

回答

5
alert(iFrame.document.queryCommandValue("FontSize")); 

OR

alert(iFrame.document.queryCommandValue("ForeColor")); 

你不能用的execCommand做到,因爲只有將execCommand基於它是否成功返回true或false。但是,這顯然有一些問題。我建議在

ContentEditable - Get current font color/size

富勒更多信息

讀了
相關問題