<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>修改html样式</title>
</head>
<body>
<p id="con">hello</p>
<script type="text/javascript">
var mycon = document.getElementById("con");
mycon.style.color="red";
mycon.style.fontSize=20; //这条语句没有识别到,是什么原因呢?
mycon.style.backgroundColor="blue";
</script>
</body>
</html>
学习js
KevenHuang
慕的地6079101
红尘第一刀
我姓蒋
疯子520520
蜂之谷
James0123456789101112
八阿哥立死
相关分类