如何从日期框中删除当前日期。实际上,当我打开日期框时,它会突出显示当前日期。但用户选择日期示例“14”。
如果用户再次打开日期框,它会突出显示“14”和当前日期。
这是我的小提琴http://jsfiddle.net/ravi1989/uhdYv/1/ http://jsfiddle.net/ravi1989/uhdYv/1/
<input name="mydate" id="mydate" type="date" data-role="datebox" class="documentDate_h" data-options='{"mode": "calbox","useNewStyle":true,"zindex":1200}' />
首先单击标题上的(+)按钮。它显示弹出窗口。打开日期框。它显示今天日期选择任何日期。然后再次打开日期框。它显示所选日期和今天的日期。?
第二期 如何改变周一、周二的颜色...?
For changing color of the current date from its default theme "a" you can use this:
<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "calbox", "useNewStyle":true, "themeDateToday": "e", "zindex":2000}'/>
Hence current date will be in yellow, instead of blue and choosen date can be default blue.
refer these sites for theming of the call box:
http://dev.jtsage.com/jQM-DateBox2/demos/fullopt.html
http://dev.jtsage.com/jQM-DateBox2/demos/api/themes.html
There is no such setting for month text, so for "Tu We" etc override the class as per below:
.ui-datebox-griddate-label {
height: 15px!important;
line-height: 15px!important;
color: green;
}
要删除当前日期的突出显示并仅突出显示所选日期,您可以执行以下操作:
但是保留两者你需要修改 datebox 的 api 代码本身......
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)