How to load sencha-touch.css in IE 10?

我与影子孤独终老i 提交于 2019-12-11 19:17:41

问题


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

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