<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<title>网站制作移动端适配详细指南-思洋互动</title>
		<meta name="keywords" content="网站制作移动端适配详细指南">
	    <meta name="description" content="网站制作移动端适配是确保网站在不同移动设备上提供良好用户体验的关键步骤。以下是关于网站制作移动端适配的详细指南：一、适配目标移动端适配的主要目标是在不同尺寸的移动...">
		<meta name="renderer" content="webkit" />
		<link href="/css/main.css?v=39" rel="stylesheet">
		<link href="/css/base.css?v=39" rel="stylesheet">
        <link href="/css/swiper-3.4.2.min.css" rel="stylesheet">
		<script type="text/javascript" src="/js/jquery.min.js"></script>
        <script type="text/javascript" src="/js/swiper-3.4.2.min.js"></script>
		<!--[if lt IE 9]>
            <script src="/js/html5shiv.min.js"></script>
            <script src="/js/respond.min.js"></script>
            <link href="/css/ie.css" rel="stylesheet">
        <![endif]-->
		<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?8914d517c927d8e794148d05e387fb17";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<link rel="canonical" href="https://www.ciya.cn/article/10580.html">
		</head>
	<body class="no-banner">
		<div class="container">
			<div class="header">
	<div class="header-top">
		<div class="w1700">
			<a href="https://www.ciya.cn/"><img src="/images/logo.png?v=2"></a>
		</div>
	</div>
	<div class="header_b">
		<header class="slide">
			<div id="navToggle" class="menu-handler">
				<span class="burger burger-1 trans"></span>
				<span class="burger burger-2 trans-fast"></span>
				<span class="burger burger-3 trans"></span>
			</div>
		</header>
	</div>
	<nav class="slide">
		<div class="w1700">
			<a class="index" href="/"></a>
			<ul>
								<li><a href="https://www.ciya.cn/case/12.html">项目案例</a></li>
								<li><a href="https://www.ciya.cn/website/9.html">网站建设</a></li>
								<li><a href="https://www.ciya.cn/marketing/10.html">网络营销</a></li>
								<li><a href="https://www.ciya.cn/media/11.html">新媒体</a></li>
								<li class="active"><a href="https://www.ciya.cn/news/16.html">动态</a></li>
								<li><a href="https://www.ciya.cn/about/8.html">关于</a></li>
								<li><a href="https://www.ciya.cn/contact/13.html">联系</a></li>
							</ul>
		</div>
	</nav>
</div>            <div class="content slide">
                <div class="position bgf1">
                    <div class="w1700">
                        <a href="https://www.ciya.cn/">首页 ></a>
                        <a href="https://www.ciya.cn/news/16.html">动态 ></a>
                        <a href="https://www.ciya.cn/news/41.html">网站制作</a>
                    </div>
                </div>
                <div class="case-type">
                    <div class="w1700">
                                                <a href="https://www.ciya.cn/news/32.html" >品牌合作</a>
                                                <a href="https://www.ciya.cn/news/31.html" >新闻动态</a>
                                                <a href="https://www.ciya.cn/news/38.html" >网站建设</a>
                                                <a href="https://www.ciya.cn/news/41.html"  class="active">网站制作</a>
                                                <a href="https://www.ciya.cn/news/40.html" >网站设计</a>
                                                <a href="https://www.ciya.cn/news/42.html" >运营推广</a>
                                                <a href="https://www.ciya.cn/news/35.html" >网站知识</a>
                                            </div>
                </div>
                <div class="padding-tb80">
                    <div class="w1700 clear">
                        <div class="fl xwxq-l">
                            <div class="noselettext">
                                <div class="xwxq-title mg-bt60 wow slideUp">
                                    <h1 class="mg-bt35">网站制作移动端适配详细指南</h1>
                                    <span>时间：2025-11-05</span>
                                </div>
                                <div class="edit2 mg-bt60 wow slideUp">
                                                                        <p>网站制作移动端适配是确保网站在不同移动设备上提供良好用户体验的关键步骤。以下是关于网站制作移动端适配的详细指南：</p><p style="text-align: center;"><img src="/upload/image/20251021/1761061882911857.jpg" title="1761061882911857.jpg" alt="1761061882911857.jpg"/></p><h3>一、适配目标</h3><p>移动端适配的主要目标是在不同尺寸的移动设备上，使页面能够合理展示或保持统一效果的等比缩放，确保用户无论使用何种设备访问网站，都能获得一致的视觉和操作体验。</p><h3>二、适配方法</h3><ol class=" list-paddingleft-2"><li><p><strong>响应式设计</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><strong>流式网格</strong>：使用百分比（%）等相对单位定义页面元素的宽度，使布局能够随浏览器窗口伸缩。</p></li><li><p><strong>弹性图片</strong>：通过设置<code class=" inline">max-width: 100%</code>，确保图片能在其容器内缩放，防止溢出。</p></li><li><p><strong>媒体查询</strong>：CSS3的核心功能，允许开发者针对不同的屏幕条件（如宽度、高度、方向）应用不同的CSS规则，是实现响应式布局的“魔法棒”。</p></li></ul><ul class=" list-paddingleft-2"><li><p><strong>核心思想</strong>：一套代码，多端适配。使用同一套HTML代码，通过CSS媒体查询等技术，根据访问设备的屏幕尺寸、分辨率等特性，动态调整页面的布局和样式。</p></li><li><p><strong>实现方式</strong>：</p></li></ul><li><p><strong>动态服务</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><strong>核心思想</strong>：服务器根据用户设备的User-Agent（用户代理）信息，检测设备类型，并动态生成不同的HTML和CSS内容。</p></li><li><p><strong>特点</strong>：可以为特定设备提供高度定制化的页面，但对后端开发和服务器配置要求较高，维护成本也相对更大。</p></li></ul><li><p><strong>单独移动站点</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><strong>核心思想</strong>：为PC端网站创建一个专门的移动版本，通常使用<code class=" inline">m.example.com</code>这样的二级域名。</p></li><li><p><strong>特点</strong>：实现上相对直接，但需要维护两套代码，内容同步繁琐，且分散了SEO权重。</p></li></ul></ol><h3>三、关键技术与细节</h3><ol class=" list-paddingleft-2"><li><p><strong>Viewport设置</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><code class=" inline">width=device-width</code>：将视口宽度设置为设备宽度。</p></li><li><p><code class=" inline">initial-scale=1.0</code>：初始缩放比例为1。</p></li><li><p><code class=" inline">user-scalable=no</code>：禁用用户缩放（可选，根据需求设置）。</p></li><li><p><code class=" inline">viewport-fit=cover</code>：适配刘海屏（可选，针对特定设备）。</p></li></ul><ul class=" list-paddingleft-2"><li><p><strong>作用</strong>：控制网页在移动设备上的显示方式。</p></li><li><p><strong>关键属性</strong>：</p></li><li><p><strong>示例代码</strong>：</p><pre>html</pre></li></ul></ol><pre><code class="language-html " data-theme="light"><div class="code-wrapper"><table class="hljs hljs-ln"><tbody><tr class="firstRow"></tr></tbody></table><br/></div></code></pre><div class="custom-html md-stream-desktop"><ul class=" list-paddingleft-2"><li><p><br/></p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><pre>&lt;metaname=&quot;viewport&quot;content=&quot;width=device-width,&nbsp;initial-scale=1.0&quot;&gt;</pre></li></ul><li><p><strong>单位选择</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><code class=" inline">em</code>是相对单位，参照物是设置了<code class=" inline">font-size</code>的父元素的<code class=" inline">font-size</code>。</p></li><li><p><code class=" inline">rem</code>可以理解为<code class=" inline">root-em</code>，参照物为根元素<code class=" inline">html</code>。</p></li><li><p><strong>推荐单位</strong>：在移动端，推荐使用<code class=" inline">rem</code>或<code class=" inline">em</code>单位来设置字体大小、<code class=" inline">margin</code>、<code class=" inline">padding</code>等，以便页面元素能更好地适应不同屏幕。</p></li><li><p><strong><code class=" inline">rem</code>与<code class=" inline">em</code>的区别</strong>：</p></li></ul><li><p><strong>图片适配</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>策略</strong>：针对不同分辨率设备，使用<code class=" inline">srcset</code>和<code class=" inline">sizes</code>属性加载不同大小的图片。</p></li><li><p><strong>示例代码</strong>：</p><pre>html</pre></li></ul><pre><br/></pre><pre>&lt;imgsrcset=&quot;image-320w.jpg&nbsp;320w,&nbsp;image-480w.jpg&nbsp;480w,&nbsp;image-800w.jpg&nbsp;800w&quot;</pre><pre>sizes=&quot;(max-width:&nbsp;320px)&nbsp;280px,&nbsp;(max-width:&nbsp;480px)&nbsp;440px,&nbsp;800px&quot;</pre><li><pre>src=&quot;image-800w.jpg&quot;alt=&quot;Responsive&nbsp;image&quot;&gt;</pre></li><li><p><strong>CSS处理</strong>：</p><pre>css</pre></li><pre><br/></pre><pre>.responsive-image{</pre><pre>max-width:100%;</pre><pre>height:&nbsp;auto;</pre><pre>display:&nbsp;block;</pre><li><p><br/></p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><pre>}</pre></li></ul><li><p><strong>横竖屏适配</strong>：</p></li><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><strong>媒体查询</strong>：使用媒体查询针对横屏和竖屏模式定制不同的样式。</p></li><li><p><strong>示例代码</strong>：</p><pre>css</pre></li></ul><pre><br/></pre><pre>/*&nbsp;横屏模式&nbsp;*/</pre><pre>@mediascreenand(orientation:&nbsp;landscape)&nbsp;{</pre><pre>.landscape-container{</pre><pre>display:&nbsp;flex;</pre><pre>flex-direction:&nbsp;row;</pre><pre>}</pre><pre>}</pre><pre><code class="language-css " data-theme="light"><table class="hljs hljs-ln"><tbody><tr class="firstRow"><td class="hljs-ln-line hljs-ln-code" data-line-number="8"><br/></td></tr><tr><td><br/></td></tr></tbody></table></code></pre><pre>/*&nbsp;竖屏模式&nbsp;*/</pre><pre>@mediascreenand(orientation:&nbsp;portrait)&nbsp;{</pre><pre>.portrait-container{</pre><pre>display:&nbsp;flex;</pre><pre>flex-direction:&nbsp;column;</pre><pre>}</pre><li><pre>}</pre></li><li><p><strong>JavaScript监听</strong>：通过JavaScript监听屏幕旋转事件，执行相应的操作。</p><pre>javascript</pre></li><pre><br/></pre><pre>window.addEventListener(&#39;orientationchange&#39;,function()&nbsp;{</pre><pre>if(window.orientation===180||window.orientation===0)&nbsp;{</pre><pre>//&nbsp;竖屏</pre><pre>console.log(&#39;竖屏&#39;);</pre><pre>}</pre><pre>if(window.orientation===90||window.orientation===&nbsp;-90)&nbsp;{</pre><pre>//&nbsp;横屏</pre><pre>console.log(&#39;横屏&#39;);</pre><pre>}</pre><ol class=" list-paddingleft-2"><li><p><br/></p></li><ul class=" list-paddingleft-2"><li><pre>});</pre></li></ul></ol><h3>四、测试与优化</h3><ol class=" list-paddingleft-2"><li><p><strong>测试方法</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><strong>浏览器开发者工具</strong>：使用Chrome、Firefox等现代浏览器内置的开发者工具，提供“设备模拟”功能，可以模拟各种主流手机和平板的屏幕尺寸及User-Agent，进行初步调试。</p></li><li><p><strong>真实设备测试</strong>：在几款代表性的iOS和Android设备上实际访问网站，检查所有功能和交互是否正常。</p></li><li><p><strong>在线测试平台</strong>：使用如BrowserStack、LambdaTest等云测试服务，它们提供覆盖全球上百种真实设备和浏览器的测试环境，无需购买大量实体设备。</p></li></ul><li><p><strong>优化策略</strong>：</p></li><ul class=" list-paddingleft-2"><li><p><strong>性能优化</strong>：通过合并CSS和JavaScript文件、使用CSS 
Sprites等方法，减少页面的HTTP请求次数，提升加载速度。通过设置HTTP缓存头，利用浏览器缓存机制，减少重复加载资源的时间。对于非首屏内容，可以使用延迟加载（Lazy
 Loading）技术，确保页面在加载时优先显示用户可见的内容。</p></li><li><p><strong>SEO优化</strong>：确保元标签（Meta Tags）适用于移动端、结构化数据标记以及本地化SEO策略等，以提升网站在移动搜索中的排名。</p></li></ul></ol></ul></div>                                </div>
                            </div>
                                                        <div class="xwxq-bot bgf1 wow slideUp">
                                <div class="xwxq-fy clear">
                                    <a class="fl" href="/article/10586.html"><i></i>高新技术产业网站制作详解分析</a>
                                    <a class="fr" href="/article/10574.html"><i></i>网站制作低价陷阱识别</a>
                                </div>
                                <a class="fhlb" href="#"></a>
                            </div>
                        </div>
                        <div class="fr xwxq-r">
                            <div class="xwxq-tj-page bgf1 mg-bt40 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title mg-bt30">
                                        <h3>最新案例</h3><span>LATEST CASES</span>
                                    </div>
                                    <div class="zxal">
                                        <div class="swiper-container">
                                            <div class="swiper-wrapper">
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/409.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214103120.jpg" alt="广州呼吸研究院"/></div>
                                                            <p>广州呼吸研究院</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/433.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102846.jpg" alt="融创集团"/></div>
                                                            <p>融创集团</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/268.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102923.jpg" alt="粤海集团"/></div>
                                                            <p>粤海集团</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/414.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211216/20211216115258.jpg" alt="恒大足球学校"/></div>
                                                            <p>恒大足球学校</p>
                                                        </a>
                                                    </div>
                                                                                                        <div class="imgscale li swiper-slide">
                                                        <a href="https://www.ciya.cn/article/477.html">
                                                            <div class="img100 mg-bt20"><img src="/upload/20211214/20211214102958.jpg" alt="侨鑫集团"/></div>
                                                            <p>侨鑫集团</p>
                                                        </a>
                                                    </div>
                                                                                                </div>
                                        </div>
                                        <div class="zxalDot text-center swiperDot"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="xwxq-tj-page bgf1 mg-bt40 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title tjxw-title-line mg-bt20">
                                        <h3>热点新闻</h3><span>TOP NEWS</span>
                                    </div>
                                    <ul class="rdxw">
                                                                                <li><a href="https://www.ciya.cn/article/7607.html">1  广州网站建设价格一览：不同类型网站的费用</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/9938.html">2  网站制作奖励和奖励机制是怎样实现的</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/8240.html">3  虚拟现实网站制作：让线上体验更接近现实！</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/8404.html">4  网站后台保护数据和用户隐私的措施</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/7614.html">5  网站建设报价：详细清单与价格构成</a></li>
                                                                            </ul>
                                </div>
                            </div>
                            <div class="xwxq-tj-page bgf1 wow slideUp">
                                <div class="xwxq-tj-warp bgfff">
                                    <div class="tjxw-title tjxw-title-line mg-bt20">
                                        <h3>最新动态</h3><span>NEWS</span>
                                    </div>
                                    <ul class="rdxw">
                                                                                <li><a href="https://www.ciya.cn/article/10604.html">1  如何编写网站制作功能需求清单</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10598.html">2  学习教育类网站制作详细方案</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10589.html">3  简述网站制作中数据分析</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10586.html">4  高新技术产业网站制作详解分析</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10580.html">5  网站制作移动端适配详细指南</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10574.html">6  网站制作低价陷阱识别</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10568.html">7  网站制作需求分析及预算方案</a></li>
                                                                                <li><a href="https://www.ciya.cn/article/10562.html">8  网站制作如何实现多媒体融合</a></li>
                                                                            </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="footerbox">
	<div class="footer">
		<div class="w1700">
			<ul>
				<li>
					<span class="fttitle">思洋 · 广州总部</span>
					<div>
						<p>广州天河区珠江新城富力盈力大厦北塔2706</p>
						<p>020-38013166（网站咨询专线）</p>
					</div>
					<p>400-001-5281 （售后服务热线）</p>
				</li>
				<li>
					<span class="fttitle">思洋 · 深圳</span>
					<div>
						<p>深圳市坂田十二橡树庄园F1-7栋</p>
						<p>Site/ http://www.szciya.com </p>
						<p>E-mail/ itciya@vip.163.com</p>
					</div>
					<p>品牌服务专线：400-001-5281 </p>
				</li>
				<li>
					<span class="fttitle">思洋 · 湖南</span>
					<div>
						<p>长沙市天心区芙蓉中路三段398号新时空大厦5楼</p>
						<p>联系电话/ (+86 0731)88282200</p>
					</div>
					<p>品牌服务专线/ 400-966-8830</p>
				</li>
				<li class="lastli">
					<p class="mt10">旗下运营网站：</p>
					<div class="mt10">
						<img src="/images/ftlogo2.png">
						<img src="/images/gogo.png">
						<img src="/images/ftlogo3.png">
						<img src="/images/ftlogo4.png">
						<img src="/images/ftlogo11.png">
					</div>
				</li>
			</ul>
		</div>
	</div>
	<div class="ft_bottom">
		<div class="w1700">
			<p class="cop">Copyright © 2016 广州思洋文化传播有限公司，保留所有权利。 <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备09033321号</a>
			</p>
		</div>
	</div>
</div>
<div class="le-box active">
	<div class="t show780">
		<a href="tel:13570966600">
			<img src="/images/ml9-1.png?v=1" alt="" class="sow i">
			<img src="/images/ml9-1.png?v=1" alt="" class="iove i">
		</a>
	</div>
	<div class="t">
		<img src="/images/ml1-1.png?v=1" alt="" class="sow i">
		<img src="/images/ml1-1.png?v=1" alt="" class="iove i">
		<div class="iov">
			<div class="img">
				<img src="/images/qr.jpg" alt="与项目经理交流">
			</div>
			<div class="h">扫描二维码<br>与项目经理交流</div>
		</div>
	</div>
	<div class="t">
		<img src="/images/ml2-1.png?v=1" alt="" class="sow i">
		<img src="/images/ml2-1.png?v=1" alt="" class="iove i">
		<div class="iov">
			<div class="img">
				<img src="/images/qq001.jpg" alt="">
			</div>
			<div class="h">扫描二维码<br>与项目经理交流</div>
		</div>
	</div>
	<!--<div class="t">-->
		<!--<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1607245872&amp;site=ciya.cn&amp;menu=yes" target="_blank">-->
			<!--<img src="/images/ml2-1.png?v=1" alt="" class="sow i">-->
			<!--<img src="/images/ml2-1.png?v=1" alt="" class="iove i">-->
		<!--</a>-->
	<!--</div>-->
	<div class="t hide780">
		<a href="https://affim.baidu.com/unique_510425/chat?siteId=19536215&userId=510425&siteToken=8914d517c927d8e794148d05e387fb17" target="_blank">
			<img src="/images/ml3-1.png?v=1" alt="" class="sow i">
			<img src="/images/ml3-1.png?v=1" alt="" class="iove i">
		</a>
	</div>
</div>
<script>
	$(window).scroll(function(){
//		if($(window).scrollTop()>200){
//			$(".le-box").addClass("active");
//		}else{
//			$(".le-box").removeClass("active");
//		}
	})
</script>
<div class="wap_fx">
	<a href="tel:13570966600" class="phone"></a>
	<a href="mqqwpa://im/chat?chat_type=wpa&uin=1607245872&version=1&src_type=web&web_src=ciya.cn" target="_blank" class="qq"></a>
	<a href="javascript:;" class="wx2"></a>
	<a class="kef986" style="background:rgba(0,0,0,.6) url(/images/ml3-1.png?v=1) no-repeat center;background-size: cover;border-radius: 4px;" href="https://p.qiao.baidu.com/cps/chat?siteId=18513940&userId=510425&siteToken=e5e1bde478969b43bf99b7703a694c0b" target="_blank"></a>
</div>
<div class="wap-wxcode">
	<div class="middle-box">
		<div class="middle-inner">
			<div class="wap-wxcode-con">
				<img src="/images/ff_ewm.jpg" alt=""/>
				<div class="wap-wxcode-bot"><span class="wxname">ciya68</span><button class="copy-btn" data-clipboard-text="ciya68">点击复制</button></div>
				<div class="gb1002"></div>
			</div>
		</div>
	</div>
</div>
<input id="hide" type="hidden">
<script src="/js/clipboard.min.js"></script>
<script>
	$(function(){
		$(".wx2").click(function(){
			$(".wap-wxcode").show();
		});
		$(".gb1002").click(function(){
			$(".wap-wxcode").hide();
		});
		var copyBtn=new ClipboardJS('.copy-btn');
		copyBtn.on("success",function(e){
			// 复制成功
			// alert(e.text);
			showMessage('已成功复制微信号','success',2000)
			e.clearSelection();
		});
		copyBtn.on("error",function(e){
			//复制失败；
			showMessage('复制微信号失败','error',2000)
			console.log( e.action )
		});
		function showMessage(message,type,time) {
			let str = ''
			switch (type) {
				case 'success':
					str = '<div class="success-message" style="width: 100%;height: 50px;background-color: #030026;font-size:17px;text-align: center;color:#fff;position: fixed;left: 0%;bottom: 0%;line-height: 50px;z-index: 9999">\n' +
							'    <span class="mes-text">'+message+'</span></div>'
					break;
				case 'error':
					str = '<div class="error-message" style="width: 100%;height: 50px;background-color: #030026;font-size:17px;text-align: center;color: #fff;position: fixed;left: 0%;bottom: 0%;line-height: 50px;z-index: 9999">\n' +
							'    <span class="mes-text">'+message+'</span></div>'
			}
			$('body').append(str)
			setTimeout(function () {
				$('.'+type+'-message').remove()
			},time)
		}


		var ua = navigator.userAgent.toLowerCase();
		var isWeixin = ua.indexOf('micromessenger')!= -1;
		if(isWeixin){
			$(".kef986").hide();
		}

	})
</script>
            </div>
        </div>
		<script type="text/javascript" src="/js/trunk.js?v=2"></script>
        <script>
            var zxal=null;
            var len=$(".zxal .swiper-slide").length;
            if(len>1){
                zxal = new Swiper('.zxal .swiper-container',{
                    speed:600,
                    loop:true,
                    autoplay : 5000,
                    autoplayDisableOnInteraction : false,
                    pagination : '.zxalDot',
                    paginationClickable :true,
                })
            }else{
                $(".zxalDot").hide();
            }
        </script>
	</body>
</html>

