前端第二次作业
html, div, ul, li {
margin: 0px;
padding: 0px;
}
a {
cursor: pointer;
}
li {
list-style: none;
cursor: pointer;
}
fieldset {
border: #000 1px dashed;
width: 225px;
height: 225px;
padding: 10px;
text-align: center;
float: left;
margin-left: 5px;
}
#cont_left {
width: 3 ...
前端第一次作业
123456789101112131415161718192021222324function generateShapes() { let rows = document.getElementById("rows").value; let shapesDiv = document.getElementById("shapes"); shapesDiv.innerHTML = ""; // 生成三角形 for (let i = 1; i <= rows; i++) { shapesDiv.innerHTML += " ".repeat(rows - i) + "  *".repeat(i) + "<br>"; } shapesDiv.innerHTML += "<br>"; // 生成平行四边形 ...