<!Doctype html>
<html>
<head>
<style type="text/css">
#ki{ width:200px;
height:200px;
background:#676767;
margin:0 auto;
text-align:center;
padding-top:10px;
color:white;
}
</style>
<script type="text/javascript">
var str="";
var s="";
for(var i=1;i<9;i++){
str=str+"*"
if(i==1){
s=str;
}else{
s=s+"<br/>"+str;
};
}
document.write("<Div id='ki'>"+s+"</div>")
</script>
<script type="text/javascript">
var str=""
for(var i=1;i<10;i++){
for(j=0;j<i;j++){
if (j==0 || j==2*i-2) {
str=str+"*";
} else{
str=str+" "}
}
str=str+"<br/>"
}
document.write("<Div id='ki'>"+ str+"</div>")
</script>
</head>
<body>
</body>
</html>
联系客服