大佬们帮帮忙 帮我弄个单页面
http://xiazai.xingwuwangluo.com/谁能帮忙扒一下感激不尽 确实 你直接保存这个网页不就有了吗 一个单页,已经有大佬帮你弄出来了 ```
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>手机app下载模板</title>
<link rel="stylesheet" type="text/css" href="./jian/css.css" />
</head>
<body>
<div class="content">
<div class="bg">
<img src="./jian/bg.jpg" width="100%" height="100%" />
</div>
<div class="logo">
<div class="logo1">
<img src="./jian/logo.png" />
</div>
<div class="contain">
<p>手机模板<br /> 手机模板手机模板 </p>
</div>
<div class="content2">
<div class="contain1">
手机模板手机模板
<br /> 手机模板手机模板手机模板手机模板
</div>
</div>
<div style="margin-bottom: 80px;">
<div style="width: 610px; margin: 0 auto;">
<button type="button" class="button"><atarget="_blank">
<div class="content3">
<div style="float: left;">
<img src="./jian/android.png" />
</div>
<div style="line-height: 7rem;">
Android下载
</div>
</div> </a></button>
</div>
</div>
<div>
<div style="width: 610px; margin: 0 auto;">
<button type="button" class="button"><atarget="_blank">
<div class="content3">
<div style="float: left;">
<img src="./jian/iphone.png" />
</div>
<div style="line-height: 9rem;">
iphone下载
</div>
</div> </a></button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var browser = {
versions: function() {
var u = navigator.userAgent, app = navigator.appVersion;
return {//移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1, //IE内核
presto: u.indexOf('Presto') > -1, //opera内核
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
iPad: u.indexOf('iPad') > -1, //是否iPad
webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
var isIosQQ = ( /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) && /\sQQ/i.test(navigator.userAgent));
var isAndroidQQ = ( /(Android)/i.test(navigator.userAgent) && /MQQBrowser/i.test(navigator.userAgent) && /\sQQ/i.test((navigator.userAgent).split('MQQBrowser')));
var isQQ = isIosQQ || isAndroidQQ;
if (ua.match(/MicroMessenger/i) == "micromessenger" || isQQ) {
return true;
} else {
return false;
}
}
var isWeixin = is_weixin();
var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
function loadHtml(){
var div = document.createElement('div');
div.id = 'weixin-tip';
if(browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){
div.innerHTML = '<p><img style="width:80%" src="static/picture/ios.png" alt="微信打开"/></p>';
}else if(browser.versions.android){
div.innerHTML = '<p><img style="width:80%" src="static/picture/android.png" alt="微信打开"/></p>';
}
document.body.appendChild(div);
}
function loadStyleText(cssText) {
var style = document.createElement('style');
style.rel = 'stylesheet';
style.type = 'text/css';
try {
style.appendChild(document.createTextNode(cssText));
} catch (e) {
style.styleSheet.cssText = cssText; //ie9以下
}
var head=document.getElementsByTagName("head"); //head标签之间加上style样式
head.appendChild(style);
}
var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
if(isWeixin){
loadHtml();
loadStyleText(cssText);
}
</script>
</body>
</html>
``` Ctrl + U查看网页源代码就行了呀,源代码里css和js的路径都可以点过去保存, view-source:http://xiazai.xingwuwangluo.com/ 自力更生 view-source:http://xiazai.xingwuwangluo.com/ 复制粘贴 点一点 就好了
页:
[1]