【问题标题】:jQuery Mobile Slider Input Not Wide EnoughjQuery Mobile 滑块输入不够宽
【发布时间】:2013-09-22 21:48:45
【问题描述】:

谁能告诉我如何增加 jQuery Mobile 滑块的输入区域的宽度,而不会丢弃控件的其余元素。输入区域正在裁剪大量数字。

   <!DOCTYPE html>
<html>
<head>
<link href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>

    <section id="page1" data-role="page">
        <header data-role="header" data-theme="a"       data-position="fixed">

        </header>                <div data-role="fieldcontain" id="trDesiredAnnuityPayment">
                    <label id="PremiumText" for="txtDesiredAnnuityPayment">Desired Payment</label>
                    <input type="range" id="txtDesiredAnnuityPayment" name="txtDesiredAnnuityPayment"
                  step="1000" value="2088880" min="1000" max="5000000">
                </div>  </section>
  </body>
</html>

【问题讨论】:

  • 你有没有得到这个答案?

标签: jquery css jquery-mobile


【解决方案1】:
#txtDesiredAnnuityPayment{
    width:auto;
}

在谷歌浏览器中测试。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-12-20
    • 1970-01-01
    • 2012-01-27
    • 2014-04-22
    • 1970-01-01
    • 2012-09-10
    • 1970-01-01
    • 2012-01-09
    相关资源
    最近更新 更多