html jQuery UI Datetimepicker

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html jQuery UI Datetimepicker相关的知识,希望对你有一定的参考价值。

<!doctype html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" type="text/css" media="all" />
        <style>
            .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
            .ui-timepicker-div dl { text-align: left; }
            .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
            .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
            .ui-timepicker-div td { font-size: 90%; }
            .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
            .ui-timepicker-rtl{ direction: rtl; }
            .ui-timepicker-rtl dl { text-align: right; }
            .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
        </style>
    </head>
    <body>
        <input type="text" name="my_date" id="my_date" value="">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-sliderAccess.js"></script>
        <script>
            $('#my_date').datetimepicker();
        </script>
    </body>
</html>

以上是关于html jQuery UI Datetimepicker的主要内容,如果未能解决你的问题,请参考以下文章

jQuery UI 工具提示不支持 html 内容

EasyClick Html UI 第十七节 jQuery选择器

jQuery:用于博客的带有核心 jQuery 或 jQuery UI 的纯 HTML/CSS?

html jQuery UI Datetimepicker

html jQuery Mobile的卡片UI

HTML 谷歌托管jQuery UI