<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=bck">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title></title>
</head>
<script src="./jquery-3.5.1.js"></script>
<style >
.box
{
position:relative;
left:350px;
top:0px;
}
li
{
border-bottom:1px solid black;
list-style:none;
padding-bottom:10px;
}
ul
{
width:350px;
margin:0px;
padding-left:10px;
}
</style>
<script >
$(document).ready(function()
{
$(".box").click(function()
{
var tex=document.createElement("li")
tex.innerHTML=$(".box0").val();
$("ul").append(tex);
});
});
</script>
<body>
<div>
<div>
<textarea class="box0" cols="50" rows="10"></textarea>
<div>
<input class="box" type="button" value="提交">
</div>
</div>
<ul>
</ul>
</div>
</body>
</html>
留言栏
最新推荐文章于 2024-06-13 10:31:50 发布