按钮不会单击Mobile Safari

时间:2013-04-29 21:59:36

标签: html mobile button twitter-bootstrap mobile-safari

我的网页上有几个按钮可以在我测试过的所有浏览器上运行正常但是移动游戏(Iphone,Ipad等)

如果你去:http://www.divisionforty.com/

并点击查看视频或更多信息,您将看到没有任何反应,因为同一页面上的另一个按钮可以进一步正常工作。

以下是代码:

    <div id="hero">
           <div class="page-header pull-left"><h1>you deserve a better web experience!</h1>
            <p>inroducing a complete web presence service that is designed to ease your companies workload while increasing user ease.<br> <a href="services.php"> learn more</a></p>


            <a href="#" id="videofade" class="button">watch video</a>                              


            </div>


    </div>

出于某种原因,这些按钮似乎无法正常工作。

希望有人可以提供帮助

丹佛

1 个答案:

答案 0 :(得分:0)

想出一个修复方案。它搞得一团糟,因为

<video id="videopromo" style="display:none;position:absolute;z-index:-1;" controls poster="video/video.jpg" width="100%" height="500">
  <source src="video/video.mp4" type="video/mp4">
  <source src="video/video.webm" type="video/webm">
  <object type="application/x-shockwave-flash" data="video/player.swf"
width="854" height="504">
    <param name="allowfullscreen" value="true">
    <param name="allowscriptaccess" value="always">
    <param name="flashvars" value="file=video.mp4">
    <!--[if IE]><!--><param name="movie" value="player.swf">
    <!--<![endif]-->


    <img src="http://devfiles.myopera.com/articles/4791/video.jpg" width="100%" height="500" alt="Video">
    <p>Your browser can't play HTML5 video. <a href="video/video.webm">
Download it</a> instead.</p>
  </object>
</video>

位于

之上
<div id="heroslider">

            <div id="hero">
                   <div class="page-header pull-left"><h1>you deserve a better web experience!</h1>
                    <p>inroducing a complete web presence service that is designed to ease your companies workload while increasing user ease.<br> <a href="services.php"> learn more</a></p>


                    <a href="#" id="videofade" class="button">watch video</a>                              


                    </div>


            </div>

    </div>

我只是使用display:none隐藏视频,单击该按钮时会取消。

现在一切正常,因为您可以在http://divisionforty.com

上在移动设备上进行测试

丹佛