2

我的网页上有一些按钮可以在我测试过的所有浏览器上正常工作,但移动 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>

出于某种原因,只有这些按钮似乎不起作用。

希望有人可以帮助

丹佛

4

1 回答 1

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在移动设备上进行测试

丹佛

于 2013-05-01T01:06:13.453 回答