主要是一个CSS样式控制和一个META标签;
复制代码代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="save" CONTENT="history">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
input{
behavior:url(#default#savehistory);
}
textarea{
behavior:url(#default#savehistory);
}
</style>
<title> ex1 </title>
</head>
<body>
<input name=t1 type=text style="font-size:18">我的信息都还在
<input name=t2 type=text style="font-size:18">
<input type="radio" name="rd" value="1" />
<textarea name="tx" id="tx"></textarea>
<p>
<a href="http://www.baidu.com"> click here </a>
</p>
<body>
</html>
复制代码代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="save" CONTENT="history">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
input{
behavior:url(#default#savehistory);
}
textarea{
behavior:url(#default#savehistory);
}
</style>
<title> ex1 </title>
</head>
<body>
<input name=t1 type=text style="font-size:18">我的信息都还在
<input name=t2 type=text style="font-size:18">
<input type="radio" name="rd" value="1" />
<textarea name="tx" id="tx"></textarea>
<p>
<a href="http://www.baidu.com"> click here </a>
</p>
<body>
</html>