1.各位Javascript高手--样式加JS--
<html>
<head>
<script>
function getPercent(Per){
//Per=0~100
var div='<div class="a"><div style="width:'+Per+'%;background:red;height:20px;">'+Per+'%</div></div>';
document.write(div);
}
</script>
<style>
.a{width:200px;border:solid 1px blue;}
</style>
</head>
<body>
<div>
<script>
getPercent('80');
</script>
<br/>
<script>
getPercent('20');
</script>
<br/>
<script>
getPercent('45');
</script>
</div>
</body>
</html>
2.写一个javascript,检查问卷 form 中各项都必须要填才可<body>