【发布时间】:2011-06-23 05:01:05
【问题描述】:
我正在尝试设置我的 jQuery Mobile 表单输入和文本区域的样式。
现在他们是这样定制的:
http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/forms/forms-text.html
你想自己设计没有圆边的样式。我已经通过添加一个新的样式表并添加:
input {
width:100%;
height: 40px;
border: 0px !important;
border-bottom: 1px solid !important;
border-bottom-color: #ccc !important;
-moz-border-radius: 0px !important;
-khtml-border-radius: 0px !important;
-webkit-border-radius: 0px !important;
border-radius: 0px !important;}
#overheard textarea {
width:100%;
height: 100px !important;
border: 0px !important;
-moz-border-radius: 0px !important;
-khtml-border-radius: 0px !important;
-webkit-border-radius: 0px !important;
border-radius: 0px !important;}
但是有几件事我想不通:
- 在 textarea 上,我无法摆脱内部阴影。
- 当我点击一个字段时,在 textarea 和 input 上都会出现一个外部阴影。我在 jQuery Mobile css 或 .js 中找不到它的来源。有什么想法吗?
【问题讨论】:
标签: jquery jquery-mobile