1,打印制作正金字塔直线
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>打印倒正金字塔直线</title>
<style>
div{
width: 300px;
margin: 50px auto;
text-align: center;
line-height: 10px;
}
hr{
width: 30px;
display: inline-block;
border: 1px solid;
}
</style>
</head>
<body>
<div>
<script type="text/javascript">
document.write("<h2>打印倒正金字塔直线</h2>")
for(var i=7;i>0;i--){
for(var j=0;j<=i-1;j++){
document.write("<hr/>")
}
document.write("<br/>")
}
for (var i=1;i<=6;i++){
for (var j=0;j<i