为什么这对我来说根本不起作用?
<script type="text/javascript" src="Javascript/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="Javascript/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(function() {
$('.selector').draggable({ axis: 'x' }); });
</script>
<body>
<div class="selector">
<p>Drag me around</p>
</div>
Run Code Online (Sandbox Code Playgroud)
我真的只是从jQuery网站上的可拖动的示例页面复制和粘贴,它只是不起作用:(
谁能告诉我为什么?
当我使用此代码
<!--[if IE 6]>
<link rel="stylesheet" href="ie6.css" type="text/css" />
<![endif]-->
<!--[if !IE]>
<link rel="stylesheet" href="not_ie.css" type="text/css" />
<![endif]-->
Run Code Online (Sandbox Code Playgroud)
IE 6确实正确使用了指定的样式表,但所有其他浏览器都忽略了它们何时应该使用基本陈述的样式表,如果你不是IE,则使用这个样式表.
有任何想法吗?