2013-07-22 56 views
-1

我是新手,jQuery Mobile的,现在我与表单元素的工作,我有写下面的代码:

jQuery Mobile的窗体的文本元素不能正确渲染

<div data-role="page"> 
    <div data-role="header"></div> 
    <div data-role="content"> 
     <input type="text" placeholder="Enter some text"/> 
     <input type="password" placeholder="Enter Password"/> 
     <input type="button" value="Login" /> 
    </div> 

</div> 


而设计上面的两个不正确地呈现在输入type.i不知道是什么问题。
以下图片显示了上述代码的输出,在图片中清晰地显示了渲染视图。


This is the design which is rendered while i run above code

+0

嗨!请就具体问题制定明确的问题,并且您更有可能获得帮助。 [常见问题]中的更多详细信息。 –

+0

谢谢@David Parsson。我的问题是,当我运行上面的代码我无法得到正确的输出,有额外的余量添加在**输入**类型,我不知道如何删除额外的余量和查看输入文本框像[jqueryInputText] (http://jquerymobile.com/demos/1.2.0/docs/forms/textinputs/)这个jquery手机网站。 – anomepani

+1

这段代码没问题。我没有看到任何问题。 http://jsfiddle.net/dima_k/NMSG6/你使用一些自定义的CSS? –

回答

0

@Dima库兹米奇·我得到了我的答案。 其实我使用的是旧版本的jquery mobile css 1.2.0的版本,这就是为什么它会渲染上面的图片设计。

但是当我使用最新版本的jquery mobile css 1.3.1那么我的问题就解决了。
谢谢@Dima Kulmich。