[英]Does anyone know where I can find the code for the carousel.us JavaScript 3D Carousel? Developer's site is down
[英]Does anyone know where I can find this HTML code?
我想要3个SELECT框,允许人们选择月,日和年。 我确定有这样的HTML预设,对不对?
January 5 2006
用户可以选择日期,这只是选项框。
您应该使用html 5 <input type="date" />
然后对尚不支持它的浏览器进行适当降级。
要优雅地降级,请使用以下代码,该代码取自diveintohtml5这里 。
<form>
<input type="date">
</form>
...
<script>
var i = document.createElement("input");
i.setAttribute("type", "date");
if (i.type == "text") {
// No native date picker support :(
// Use Dojo/jQueryUI/YUI/Closure to create one,
// then dynamically replace that <input> element.
}
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.