jQTouch后退按钮

发布于 2024-10-01 14:55:36 字数 259 浏览 0 评论 0原文

我正在使用 jQTouch 构建一个类似 UITableView 的界面。但是,我尝试通过使用 class="back" 创建

  • 节点来插入按钮,但我得到的只是一个风格化的、朝左的工具栏区域中的按钮(我已禁用)。
  • 有谁知道如何获取带有 class="back"

  • 元素而不用它如上所述风格化?
  • I'm using jQTouch to build a UITableView-like interface. However, I'm trying to insert a button with by creating an <li> node with class="back" but all I get is a stylized, left-facing button that is in the toolbar area (that I've disabled.)

    Does anyone know how to get an <li> element with class="back" without it being stylized as described above?

    如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

    评论(4

    池木 2024-10-08 14:55:36

    刚刚注意到在 JQtouch 的第 161 版中,css 类“goback”处理了这个问题——与“back”的作用相同,只是不应用内置样式。

    Just noticed in rev 161 of JQtouch that the css class "goback" handles this — does the same as "back" except doesn't apply the built-in styling.

    嘴硬脾气大 2024-10-08 14:55:36
    class="back" // defined in theme.css
    

    被定义为 jQTouch 样式的一部分,并且它具有特定的含义。通过在列表项中使用它,您将继承这些类值。

    DDaviesBrackett 建议您为班级使用不同的名称

    class="back" // defined in theme.css
    

    is defined as part of jQTouch styling and it has a specific meaning. By using it in to list item you are inheriting those class values.

    What DDaviesBrackett is suggesting is that you use a different name for you class

    夜灵血窟げ 2024-10-08 14:55:36

    我通过为我的

  • 元素调用 onclicked="jQT.goBack();" 解决了该问题。
  • I fixed the problem by just calling an onclicked="jQT.goBack();" for my <li> element.

    执笏见 2024-10-08 14:55:36

    我遇到了一个问题,在类似的情况下 back 无法正常工作,这是我的修复:

    var back = function(evt){
      evt.preventDefault();
      evt.stopPropagation();
      jQT.goBack();
    }
    
    $(document).ready(function(){
      $('.back').click(back);
    });
    

    // comment to allowed an edit

    I was having a problem where back wasn't working correctly in a similar scenario, this was my fix:

    var back = function(evt){
      evt.preventDefault();
      evt.stopPropagation();
      jQT.goBack();
    }
    
    $(document).ready(function(){
      $('.back').click(back);
    });
    

    // comment to allow an edit

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文