运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
<!DOCTYPE html PUBLIC "-//W3C//h2D XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/h2D/xhtml1-transitional.h2d">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<title>模拟留言板</title>
5
<style type="text/css">
6
* { padding: 0; margin: 0; }
7
li { list-style: none; }
8
#parent { width: 600px; margin: 0 auto; }
9
h4 { line-height: 40px; margin-bottom: 10px; border-bottom: 1px solid #333; color:#FF3300 }
10
p { width: 100%; background: #f1f1f1; position: relative; margin-bottom: 25px; }
11
#box { width: 580px; padding: 25px 10px 0; border: 1px solid #ddd; margin-bottom: 10px; }
12
span { position: absolute; top: -20px; right: 0px; }
13
em { position: relative; top: -13px; }
14
#text { width: 100%; height: 90px; overflow: auto; }
15
#btn { width: 100%; height: 50px; }
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
JS+CSS模拟的留言板功能
分类
网站常用
描述
JS+CSS模拟的留言板功能,在指定位置发表留言,可在当前页无刷新显示留言内容,实际上是利用JS的各种方法,将网页中的指定元素赋值,从而显示留言来实现。并不具备动态保存留言的功能。
收藏