简体   繁体   English

在哪里可以获得http://jsfiddle.net/jrweinb/MQ6VT/中提到的javascript uri css

[英]where do I get the javascript uri css referred to in http://jsfiddle.net/jrweinb/MQ6VT/

I have found a solution on js fiddle for my "time range slider" at http://jsfiddle.net/jrweinb/MQ6VT/ , but I put the code into my browser and it does not show properly (no slider) and I am sure that the reason is that i need to include the javascript/CSS URI, but I don't know where to get it, please help. 我在http://jsfiddle.net/jrweinb/MQ6VT/上找到了针对我的“时间范围滑块”的js小提琴的解决方案,但是我将代码放入了浏览器,它无法正确显示(没有滑块),我确保原因是我需要包含javascript / CSS URI,但我不知道从哪里获取它,请提供帮助。

EXTERNAL RESOURCES
javascript/CSS URI

Thanks Tom 谢谢汤姆

As @Patrick Murphy mentioned above, you have to place these external resources (or copy and place on your server), in the file where your slider is going to be. 就像上面提到的@Patrick Murphy一样,您必须将这些外部资源(或复制并放置在服务器上)放置在滑块将要放置的文件中。 Is that what you are asking for? 这就是您要的吗? Note that you have to call your .slider() function after all the external resources. 请注意,必须在所有外部资源之后调用.slider()函数。

  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

  <script>
  $( function() {
    $( "#slider-range" ).slider();
  } );
  </script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM