*{margin:0;padding:0;}
.fixed:before, .clearfix:before, .cf:before, body:before, .header:before, .main:before, .footer:before { content: ''; display: table }
.fixed:after, .clearfix:after, .cf:after, after, .header:after, .main:after, .footer:after { content: ''; display: table; clear: both }
.fixed, .clearfix, .cf, .header, .main, .footer { *zoom: 1 }
.clear, .cl { display: block!important; float: none!important; clear: both; width: auto!important; max-width: none!important; min-width: 0!important; max-height: none!important; min-height: 0!important; overflow: hidden; margin: 0!important; padding: 0!important; border: 0 none!important; font-size: 0!important; line-height: 0!important }
.weixin{max-width: 980px;margin:50px auto;border:1px solid #c8c8c8;border-radius: 10px;box-shadow: 0 0 5px #ccc;}
.wx_left{float:left;margin:100px 50px 0 150px;text-align: center;}
.wx_left h3{margin:100px auto 30px;}
.wx_right{float:right;display:inline-block;margin:50px;}
@media only screen and (max-width: 1000px){
.weixin{margin:50px 30px;}
.wx_right{display: none;}
.wx_left{width: 100%;float: none;margin: 0;margin-bottom: 50px;}
.wx_left h3{margin-top: 50px;}
}
$(function(){
var wx_url=getPara('type');
$('div.ewm_img').find('img').attr('src', 'http://tool.oschina.net/action/qrcode/generate?data=' + wx_url + '&output=image%2Fgif&error=L');
}) ;
function getPara(paraName) {
var urlPara = location.search;
var reg = new RegExp("[&|?]" + paraName + "=([^&$]*)", "gi");
var a = reg.test(urlPara);
return a ? RegExp.$1 : "";
}