read from yhd:
1. var pattern = /^/w+([-+.]/w+)*@/w+([-.]//w+)*/./w+([-.]/w+)*$/;
if(!email.match(pattern))
{
alert("???????.");
return;
}
2.
function isMobil(s)
{
var patrn = /^[0-9]{11}$/;
if(!patrn.exec(s)) {
return false;
}
return true;
}
3. IE line
<style>
#wrap{word-break:break-all; width:30%; }
</style>
<body>
<div id="wrap">ddd1111111111111111111111111111111111</div>
</body>
4. FF:
#wrap{word-break:break-all;width:200px; overflow:auto; }
5. IE:
<style>
.tbl{table-layout:fixed}
</style>
<table class="tbl" border=1 width="80" id="tbid">
<tr>
<td>abcdefghigklmnopqrstuvwxyz1234567890
</td>
</tr>
</table>
6.
<!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>
<title>new document </title>
<style type="text/css">
body{
margin:15px;
font-family:arial; font-size:12px;
text-align:"center";
}
.father{
border:1px solid #111111;
padding:5px;
float:left;
width:1024px;
height:500px;
text-align:"center";
margin: 0 auto;
}
.father div{
padding:10px;
margin:0px 15px;
border:1px dashed #111111;
background-color:#90baff;
display:inline;
text-align:"center";
}
.son1{
float:left;
}
.son2{
float:left;
}
.son3{
float:right;
}
</style>
</head>
<body style="text-align:center;vertical-align: top;">
<div class="father">
<div class="son1">box-1</div>
<div class="son2">box-2</div>
<div class="son3">box-3</div>
</div>
</body>
</html>
7.
http://butian.org/knowledge/develop/ajax/20090622/1526.html