随笔分类 - Javascript
摘要:/*可获取用户,通过哪个关键词访问该页,可自行添加SOGOU,SOSO,有道等搜索引擎*/var refer=document.referrer; var sosuo=refer.split(".")[1];var grep=null;var str=null;var keyword=null;switch(sosuo){ case "baidu": grep=/wd\=.*\&/i; str=refer.match(grep) keyword=str.toString().split("=")[1].split("
阅读全文
摘要:<!DOCTYPE HTML><html><head> <meta charset="utf-8" /> <title>demo</title> <style> *{margin:0;padding:0;} ul{list-style-type:none;width:150px;float:left;margin:15px;} ul li{height:200px;border:1px solid red;margin-top:10px;} #warp{width:750px;height:
阅读全文
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><body><p>aaaaaaaaaaa</p><div id
阅读全文
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><style type="text/css">*{margin:0;pa
阅读全文
摘要:<!DOCTYPE HTML><html><head> <meta http-equiv="content-type" charset="utf-8" /> <meta http-equiv="content-type" content="text/html" /> <title>demo</title></head><style type="text/css">*{margin:0;pa
阅读全文
摘要:IE浏览器判断版本 <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--><!--[if IE]> 所有的IE可识别 <![endif]--><!--[if IE 6]> 仅IE6可识别 <![endif]--><!--[if lt IE 6]> IE6以及IE6以
阅读全文
摘要:1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="content-type" charset="utf-8" /> 5 <meta http-equiv="content-type" content="text/html" /> 6 <title>demo</title> 7 </head> 8 <body> 9 10 <div id=&qu
阅读全文
摘要:1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="content-type" charset="utf-8" /> 5 <meta http-equiv="content-type" content="text/html" /> 6 <title>demo</title> 7 </head>13 <body>15 <div id="
阅读全文