Loading Dojo dijit CSS from CDN

匿名 (未验证) 提交于 2019-12-03 02:54:01

问题:

I am quite new to dojo world. Using dojo with google's CDN is well and Fine. But while using dijit just dojo.require() does not work. Where can I find the default CSS Themes from CDN ??

and another question out of quorisity: Would the the CSS configuration for dijit work for dojox too ??

回答1:

The CSS can be found on Google's CDN. I've used it in a page or two. Here's some CSS link tags.

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/resources/dojo.css">  <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css">  

Much like the libraries, you can pick a more or less specific version in the URL, so this will grab the latest in the 1.4.x chain.

UPDATED [19/May/2016]:-

Update version - 1.10.4

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/resources/dojo.css">  <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/tundra/tundra.css">  


回答2:

Here is 1.9.1.

Theme Tester: Claro, Tundra, Nihilo, and Soria



回答3:

Here is 1.10.4.

Theme Tester: Claro, Tundra, Nihilo, Soria



回答4:

Well, As we know 1.11.2 version also has been released so below are the cdn links for that-

Hoping this will help you :)



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!