[JavaScript] 纯文本查看 复制代码
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
#box,#content{
width: 500px;
line-height: 30px;
text-align: center;
background:#e5eecc;
border: 1px solid #e5e5e5;
}
#content{
height: 200px;
display: none;
}
</style>
</head>
<body>
<button id="btn">停止</button>
<div id="box">点击此处,向下滑动</div>
<div id="content">苏飞论坛</div>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$('#box').click(function(){
$('#content').slideDown(5000);
}) ;
$('#btn').click(function(){
$('#content').stop();
})
})
</script>
</body>
</html>