📌  相关文章
📜  如何使用 jQuery Mobile 制作内联按钮?

📅  最后修改于: 2021-11-25 04:33:14             🧑  作者: Mango

jQuery Mobile 是一种基于 Web 的技术,用于制作可在所有智能手机、平板电脑和台式机上访问的响应式内容。在本文中,我们将使用 jQuery Mobile 制作一个内联按钮。

方法:首先,添加您的项目所需的 jQuery Mobile 脚本。

我们将使用不同类型的 UI 类和类型来组成标记按钮。

示例 1:我们将使用 Button 和 class=”ui-btn ui-btn-inline” 来制作按钮。

HTML


  

    
  
    
  
    

  

    
        

GeeksforGeeks

        

Inlined Button using jQuery Mobile

    
          


HTML


  

    
  
    
  
    

  

    
        

GeeksforGeeks

        

            Inlined Anchor using              jQuery Mobile         

    
                Inlined Anchor        


输出:

示例 2:出于我们的目的,我们将使用带有 class=”ui-btn ui-btn-inline” 的锚标记。

HTML



  

    
  
    
  
    

  

    
        

GeeksforGeeks

        

            Inlined Anchor using              jQuery Mobile         

    
                Inlined Anchor        

输出: