我正在尝试在 wordpress 中使用 jquery datepicker。我正在使用不同的 jquery ui 主题并按照http://filamentgroup.com/lab/using_multiple_jquery_ui_themes_on_a_single_page/上的教程进行操作。可悲的是,小部件没有正确呈现,即采用另一个 css 定义。
这是样式块:
<!-- PAGE: Home -->
<link rel="alternate" type="application/rss+xml" title="Sperta » Home Kommentar-Feed" href="http://localhost/wordpress/home/feed/" />
<link rel='stylesheet' id='admin-bar-css' href='http://localhost/wordpress/wp-include /css/admin-bar.min.css?ver=3.5.1' type='text/css' media='all' />
<link rel='stylesheet' id='jqueryui_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/css/jqueryui/custom.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='screen_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/css/screen.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='fancybox_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/js/fancybox/jquery.fancybox-1.3.0.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='videojs_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/js/video-js.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='vim_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/js/skins/vim.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='jquery_ui_smoothness_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/css/smoothness/custom.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='mycss_css-css' href='http://localhost/wordpress/wp-content/themes/Lotus/css/mycss.css?ver=1.1' type='text/css' media='all' />
<link rel='stylesheet' id='agm_google_maps_user_style-css' href='http://localhost/wordpress/wp-content/plugins/wordpress-google-maps/css/google_maps_user.css?ver=3.5.1' type='text/css' media='all' />
这是日期选择器的输入:
<tr><td class="left-column"><label for="starts-at">Starts at:</label><div class="smoothness"><input id="starts-at" class="required" name="starts-at" type="text" style="width:80px;"/></div></td>
无论如何,日期选择器正在从 screen.css 而不是平滑主题中获取 tr、th 等定义。
这是萤火虫输出:
这就是它的渲染方式。
我做错了什么?
蚂蚁。