|
在一个Frame A.html打开另一Frame B.html并设置背景透明,但还是有一层灰灰的
A.html
api.openFrame({
name: 'test_right',
url: 'test_right.html',
rect: {
x:0,
yapi.dom('header').offsetHeight,
w:'50',
h:'auto'
}
});
B.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>title</title>
<link rel="stylesheet" type="text/css" href="../css/api.css"/>
<script src="http://libs**.**/jquery/2.0.0/jquery.min.js"></script>
<style>
html, body {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 1);
background-color: rgba(255,255,255,0);
-webkit-tap-highlight-color: transparent;
text-align:center;
}
</style>
</head>
<body>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
apiready = function() {
};
</script>
</html>
|
|