如何使用document.execCommand?将字体大小更改为30px(例如)?
document.execCommand
这个:
document.execCommand("fontSize", false, "30px");
不起作用,因为在函数execCommand的第三个参数中,它只允许我在1到7之间输入一个值.
javascript editor execcommand
editor ×1
execcommand ×1
javascript ×1