这是一定要用定义的mychar还是可以用id名称的
con.style.color="red";
con.style.fontSize="30px";
con.style.backgroundColor ="#ccc";
效果看起来一样啊
都一样,不过一般使用变量,比较规范。