问题描述
我对Dojo世界很新。使用dojo与谷歌的CDN是好的和罚款。但是使用dijit只是dojo.require()不起作用。在哪里可以从CDN中找到默认的CSS主题?
另一个问题来自quorisity:
dijit的CSS配置是否适用于dojox? ?
CSS可以在Google的CDN上找到。我已经用了一两页。这里有一些CSS链接标签。
< link rel =stylesheettype =text / csshref =http: //ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/resources/dojo.css\">
< link rel =stylesheettype =text / csshref =http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css >
很像书库,你可以选择一个或多或少的具体版本的URL,所以这将获取最新的1.4.x链。
UPDATED [19 / May / 2016]: -
更新版本 - 1.10.4
< link rel =stylesheettype =text / csshref =http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/resources/dojo.css>
< link rel =stylesheettype =text / csshref =http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/tundra/tundra。 CSS>
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 ??
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">
这篇关于从CDN加载Dojo dijit CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!