我正在尝试使用JQuery Mobile在移动应用程序的文本框中显示文本。我不知何故让文本框像在桌面上那样显示。样式未应用到文本框。
如果我在Firebug中看到,我会看到一个class
没有样式的空白。必须使用此样式-class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"
但事实并非如此。任何想法,如果我错过了一些东西来应用一些js的东西吗?
@{
Layout = "~/Views/Shared/_MobileLayout.cshtml";
}
@Html.AntiForgeryToken()
<form action="~/Mobile/Register/Complete" method="post" data-ajax="false" id="formId">
<div id="container" style="margin: -6px;">
<div>
<h1 style="margin: 0 0 5px;">Register</h1>
<div class="section">
<h3 style="margin-bottom: 0;">Enter the fields</h3>
<div class="ui-field-contain">
<label for="UserName">Username</label>
@Html.TextBoxFor(m => m.Username, new {@class = "ui-field-contain", style = "width:100%", @readonly = true})
@Html.ValidationMessageFor(model => model.Username)
</div>
</div>
</div>
<div>
</form>
提前谢谢了,
谢谢,
可能
我试图在我的JavaScript代码中删除以下这些类:
this.page.find('.ui-shadow-inset').removeClass('ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset');
当我删除上面的代码时,它开始工作并且样式被应用。
谢谢大家的答复
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句