问题
I am using the latest sencha touch library (2.2.1). I tried to load default theme in IE10, which is sencha-touch.css ( apple look and feel ), and IE 10 just crashes.
I saw that in Kitchen Sink example:
http://docs.sencha.com/touch/2.2.1/touch-build/examples/kitchensink/index.html?platform=chrome
it is possible to choose from Theme -> "Sencha" option.
Does any one know if they do something different?
回答1:
You need to update your app.json
to only load that theme on all platforms (or just IE10). You can do this by modifying the CSS
property:
"css": [
{
"path": "resources/css/sencha-touch.css",
"platform": ["chrome", "safari", "android", "firefox", "ie10"],
"theme": "Default",
"update": "delta"
}
],
来源:https://stackoverflow.com/questions/16986314/how-to-load-sencha-touch-css-in-ie-10