首页 > Web开发 > 详细

jquery mobile - select and input - horizontal - in same line

时间:2014-01-23 17:42:40      阅读:359      评论:0      收藏:0      [点我收藏+]

控件组合的水平布局

select + input 在同一行

bubuko.com,布布扣

 

 

注意jquery mobile 的js 和css 的版本,

一些低版本 估计不支持

 

 

bubuko.com,布布扣
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" />
    <script  type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script  type="text/javascript" src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
<style id="textinput-controlgroup">
            .controlgroup-textinput{
                padding-top:.22em;
                padding-bottom:.22em;
            }
        </style>
</head>
<body>

<div data-role="page">
  <div data-role="header">
    <h1>Welcome To My Homepage</h1>
  </div>

  <div data-role="content">
    <label>title</label>
 

<div data-role="controlgroup" data-type="horizontal">
    <select>
        <option>1</option>
    </select>
    <input id="currency-controlgroup" 
type="text" data-wrapper-class="controlgroup-textinput ui-btn">

</div>

  </div>

  <div data-role="footer">
    <h1>Footer Text</h1>

  </div>
</div> 

</body>
</html>
bubuko.com,布布扣

jquery mobile - select and input - horizontal - in same line

原文:http://www.cnblogs.com/freeliver54/p/3530789.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!