为什么字体的大小设置不了,呼叫大神,谢谢
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>同时运动</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
}
ul li{
width: 400px;
height: 300px;
font-size: 12px;
background: pink;
border:4px solid blue;
filter:alpha(opacity:30);
opacity: 0.3;
}
</style>
<script src="js/move.js"></script>
<script type="text/javascript">
window.onload=function(){
var li=document.getElementById('li1');
li.onmouseover=function(){
startmove(li,{width:600,height:500,opacity:100,font:20});
}
li.onmouseout=function(){
startmove(li,{width:400,height:300,opacity:30})
}
}
</script>
</head>
<body>
<ul>
<li id="li1">dd</li>
</ul>
</body>
</html>