UTILS

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值