简体   繁体   中英

Worklight - 6.1 How to remove worklight.css file from index page in all enviornment

I am using worklight 6.1 version and building iPhone, android , windows phone environment. Whenever I am deploying the environment it is adding worklight.css file with the environment in index.html file and adding some extra css in main.css file.

Issue is , these css is conflicting with my css files so just let me know how to avoid this or if can remove worklight.css file from index page.

Is there any solution for this.

You cannot not-load worklight.css, as it is inject to the app during build time. What you can do instead is override any CSS rules using !important .

For example:

body {
    background-color: red !important
}

What CSS does worklight.css contain that overrides your app's?
I know of only background-color: white being injected to the Android environment - you can override it with the above, and this is already fixed for a future release.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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