【问题标题】:jquery datepicker shows up without themejquery datepicker 显示没有主题
【发布时间】:2011-07-22 14:05:31
【问题描述】:
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
    <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/ui-lightness/jquery-ui.css"/>

<script>
    $(document).ready(function() {
    $("#TextBox1").datepicker();

    });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>

我应该链接任何其他 css 文件吗?还是 Google CDN 的问题?

【问题讨论】:

    标签: jquery-ui jquery-ui-datepicker google-cdn


    【解决方案1】:

    您将&lt;script&gt; 用于css 而不是&lt;link&gt;

    编辑:

    rel="stylesheet" 不见了

    【讨论】:

    • 哎呀!你说的对。但即使更改后问题仍然存在。
    • ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/themes/base/…>
    • rel="stylesheet" 也不见了
    【解决方案2】:

    仍然无法弄清楚如何使用外部 CSS 来做到这一点。更快的解决方案是将 CSS 文件保存在本地。

    【讨论】:

    • 这是一件很懒惰的事情,很容易做到。曼吉,你摇滚!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多