在指定位置输入内容,点击按钮自动创建一个节点生成自己所输入的内容,并且可以选择性删除
效果图展示
css部分
<style>
textarea {
width: 250px;
height: 150px;
border: 1px solid indianred;
border-radius: 3px;
}
ul li {
width: 250px;
height: 50px;
padding-left: 5px;
font-family: "楷体";
list-style: none;
color: white;
margin-bottom: 5px;
border-radius: 5px;
background-color: cadetblue