我在使用下拉菜单在浏览器中正确显示时出现问题。 的代码如下使用jQuery制作下拉菜单
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jquery test</title>
<style>
#webmenu{
width:340px;
}
</style>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function() { // makes sure the whole site is loaded
$("body select").msDropDown();
})
</script>
<select name="webmenu" id="webmenu">
<option value="calendar" title="http://www.abe.co.nz/edit/image_cache/Hamach_300x60c0.JPG"></option>
<option value="shopping_cart" title="http://www.nationaldirectory.com.au/sites/itchnomore/thumbs/screenshot2013-01-23at12.05.50pm_300_60.png"></option>
<option value="cd" title="http://www.mitenterpriseforum.co.uk/wp-content/uploads/2013/01/MIT_EF_logo_300x60.jpg"></option>
</select>
</body>
</html>
我发现在GitHub上的原代码在http://jsfiddle.net/GHzfD/357/但一直无法重现它 - 我在做某种根本性的错误?
的页面是活在http://www.datatrouble.com/jquery_test.html
尝试intialise'msDropDown()''里面的document.ready()',而不是'window.load' – 2014-10-02 05:48:25
我已经做了,但没有运气恐怕 – user2840467 2014-10-02 06:26:06