*{
margin: 0;
padding: 0;
}
.box{
width: 500px;
height: 350px;
margin: 100px auto;
border: solid 1px black;
overflow-y: scroll;
}
.top{
width: 100%;
height: 30px;
background-color: #B6C9E7;
}
.top p{
font-family: "copperplate gothic light";
line-height: 30px;
text-align: center;
float: left;
}
.txt1{
font-family: "微软雅黑";
font-size: medium;
text-decoration: underline;
color: #2B6695;
margin: 10px 10px;
}
.txt2{
font-size: smaller;
margin-left: 10px;
}
button{
border: 0;
float: right;
margin-right: 30px;
margin-top: 10px;
width: 40px;
bac

这篇博客展示了如何使用HTML和JavaScript创建一个模拟评论区,包括样式设计和交互功能实现,如点击按钮显示评论框、输入评论并发送、动态添加评论列表等。文章还提及了Cmder这一Windows终端工具,作为提升终端体验的选择。
最低0.47元/天 解锁文章
1313

被折叠的 条评论
为什么被折叠?



