JS创建dom节点
<!DOCTYPEhtml><html><head><metacharset="UTF-8"><metacontent="width=device-width,minim...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="aa.css" />
<title></title>
</head>
<style>
@font-face {
font-family:"myfont";
src: url("font.ttf");
}
</style>
<body>
<div class="C" onclick="jumpOver()"><img src="image/icon_close@2x.png" width="100%" height="100%"> </div>
<div class="biaoti" id="title1"><strong></strong></div>
<div class="title biaoti1" id="title2"><strong></strong></div>
<div class="first">
<div class="tu"><img src="image/img_man@2x.png"width="100%"></div>
<div class="zi" id="text1"></div>
</div>
<div class="title biaoti2" id="title3"><strong></strong></div>
<div class="second">
<img src="image/img_watch@2x.png"width="100%" height="100%">
</div>
<div class="title biaoti3" id="title4"><strong></strong></div>
<div class="third">
<img src="image/167481721023689597.png" width="100%" height="100%">
<div class="T" id="text2"></div>
<div class="DI" id="text2"></div>
</div>
<div class="title biaoti4"id="title5"><strong></strong></div>
<div class="bottom">
<div class="a" id="text3"> </div>
</div>
<div class="D"></div>
</body>
<script type="text/javascript">
function jumpOver() {
var ua = navigator.userAgent;
if(ua.match(/iPhone|iPod/i)!=null){
backOver.CallOCFunction();
}else if(ua.match(/Android/i)!=null){
smartmovt.backOver();
}else if(ua.match(/iPad/i)!=null){
backOver.CallOCFunction();
}
}
</script>
<script type="text/javascript" src="JS/new.js" ></script>
</html>
这是HTML代码 展开
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="aa.css" />
<title></title>
</head>
<style>
@font-face {
font-family:"myfont";
src: url("font.ttf");
}
</style>
<body>
<div class="C" onclick="jumpOver()"><img src="image/icon_close@2x.png" width="100%" height="100%"> </div>
<div class="biaoti" id="title1"><strong></strong></div>
<div class="title biaoti1" id="title2"><strong></strong></div>
<div class="first">
<div class="tu"><img src="image/img_man@2x.png"width="100%"></div>
<div class="zi" id="text1"></div>
</div>
<div class="title biaoti2" id="title3"><strong></strong></div>
<div class="second">
<img src="image/img_watch@2x.png"width="100%" height="100%">
</div>
<div class="title biaoti3" id="title4"><strong></strong></div>
<div class="third">
<img src="image/167481721023689597.png" width="100%" height="100%">
<div class="T" id="text2"></div>
<div class="DI" id="text2"></div>
</div>
<div class="title biaoti4"id="title5"><strong></strong></div>
<div class="bottom">
<div class="a" id="text3"> </div>
</div>
<div class="D"></div>
</body>
<script type="text/javascript">
function jumpOver() {
var ua = navigator.userAgent;
if(ua.match(/iPhone|iPod/i)!=null){
backOver.CallOCFunction();
}else if(ua.match(/Android/i)!=null){
smartmovt.backOver();
}else if(ua.match(/iPad/i)!=null){
backOver.CallOCFunction();
}
}
</script>
<script type="text/javascript" src="JS/new.js" ></script>
</html>
这是HTML代码 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询