zoukankan      html  css  js  c++  java
  • colorbox在android上由于高度太高无法scroll问题

    首先看问题截图:

    我们可以看到弹出的colorbox页面的高度已经到了下面,你根本看不到"mistake cross"<=>"X"。

    我测试了iphone 5s和android htc609d,发现前者是完全可以scroll,就是后者不行。

    解决办法: 在初始化的colorbox代码中设置了colorbox的width和height,同时要显示html页面我也设置width.

    看截图:

    JavaScript Code:

    1 $.colorbox({href:"reservation.php?action_type=get_package_info&promotion_id="+_sel_promotion_id,scrolling:true,
    2                 "320px",height:"580px"});

    Smarty Template:

    <div style="260px;word-wrap:break-word;white-space:no-wrap;">
       //content to show in front page
    </div>
  • 相关阅读:
    Web基础 网页的血肉CSS
    18
    19
    20
    17
    16
    15
    13
    14
    12
  • 原文地址:https://www.cnblogs.com/shuman/p/3673946.html
Copyright © 2011-2022 走看看