帖子
帖子
用户
博客
课程
显示全部楼层
79
帖子
1
勋章
94
Y币

[开发工具] 启动页放置广告的问题

[复制链接]
发表于 2017-12-2 15:46:31
  1. <!doctype html>
  2. <html>

  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  6.         <title>APICloud APP</title>
  7.         <link rel="stylesheet" type="text/css" href="../css/api.css" />
  8.         <style>
  9.             html,
  10.             body {
  11.                 height: 100%;
  12.                 background: transparent;
  13.             }

  14.             header {
  15.                 height: 50px;
  16.                 position: relative;
  17.             }

  18.             picture {
  19.                 height: 50px;
  20.                 position: relative;
  21.                 z-index: 0;
  22.             }

  23.             .skip {
  24.                 position: absolute;
  25.                 bottom: 0px;
  26.                 right: 15px;
  27.                 width: 90px;
  28.                 height: 38px;
  29.                 line-height: 38px;
  30.                 border: solid rgb(211, 211, 211) 1px;
  31.                 border-radius: 38px;
  32.                 color: #000;
  33.                 font-size: 16px;
  34.                 z-index: 9;
  35.             }

  36.             .skip>span {
  37.                 padding-left: 20px;
  38.             }

  39.             .skip>img {
  40.                 padding-top: 12px;
  41.                 vertical-align: top;
  42.                 height: 13px;
  43.             }

  44.             .highlight {
  45.                 opacity: 0.7;
  46.             }
  47.         </style>
  48.     </head>

  49.     <body>
  50.         <header id="header">
  51.             <div class="skip" tapmode="highlight" onclick="fnStart()">
  52.                 <span>跳过</span>
  53.                 <img src="../image/welcome/arrow.png" />
  54.             </div>
  55.         </header>
  56.         <div id="picture" class="shopcover">12rewsr</div>
  57.     </body>
  58.     <script type="text/javascript" src="../script/api.js"></script>
  59.     <script type="text/javascript" src="../script/common.js"></script>
  60.     <script type="text/javascript">
  61.         apiready = function() {
  62.             fnReady();
  63.             api.removeLaunchView();
  64.             picture = $api.byId('picture');
  65.             uiscrollpicture = api.require('UIScrollPicture');
  66.             fnInitPicture();
  67.         };

  68.         function fnStart() {
  69.             api.closeFrameGroup({
  70.                 name: 'welcome_group'
  71.             });
  72.         };
  73.         function fnInitPicture() {
  74.             var height = Math.ceil(api.winWidth / 1.4);
  75.             picture.style.height = height + 'px';
  76.             uiscrollpicture.open({
  77.                 rect: {
  78.                     x: 0,
  79.                     y: 30,
  80.                     w: api.winWidth,
  81.                     h: api.winHeight
  82.                 },
  83.                 data: {
  84.                     paths: ['widget://image/default1.jpg']
  85.                 },
  86.                 styles: {
  87.                     indicator: {
  88.                         align: 'center',
  89.                         color: '#eee',
  90.                         activeColor: '#f00'
  91.                     }
  92.                 },
  93.                 placeholderImg: 'widget://image/default1.jpg',
  94.                 interval: 60,
  95.                 loop: false,
  96.                 fixedOn: api.frameName,
  97.                 fixed: false
  98.             });
  99.         };
  100.     </script>

  101. </html>
复制代码
代码中,我想让“跳过”这个DIV置于uiscrollpicture之上,有什么办法么?z-index试过了,不行
380
帖子
4
勋章
6
Y币
可以用模块UIButton 做个按钮放到uiscrollpicture之上
您需要登录后才可以回帖 登录

本版积分规则