Should I use CSS reset or normalize Phonegap / Cordova applications?

I am wondering if this is a good idea (if I want consistency in a multi-platform build) to include css reset or maybe the css normalize library?

My problems are, of course, application speed, load time and memory usage, and the goal, of course, is to ensure user interface consistency across platforms ...

+4
source share
5 answers

Overview

CSS reset , Cordova/Phonegap , Windows Phone - Internet Explorer, android - Chrome ( ), iOS , - - iOS, HTML5, . , reset, , /, , . , , reset, , , , .

CSS Reset

, , CSS Engines Default Font .., reset, ( , cordova/phonegap), reset , iOS Android - . Android . iOS . , DDPI, , DPI .

, , , CSS reset, http://getbootstrap.com/css/, , , 0,5 javascript phonegap init(), , , , , http://getbootstrap.com/components/. , http://html5doctor.com/html-5-reset-stylesheet/, , .

, reset! https://www.google.co.uk/search?q=Phonegap+use+CSS+Reset&oq=Phonegap+use+CSS+Reset&aqs=chrome..69i57j69i60l3.3494j0j7&sourceid=chrome&es_sm=0&ie=UTF-8

, Phonegap/Cordova, , , HTML5! HTML5 - , ! http://www.w3.org/TR/html5/

ME: 5 , Windows Phone 7. Platform Preview. WP7 , , WP7.

+2

. , , . , .

, / / .

0

, !

- .

, CSS reset.

0

Phonegap, , , , CSS reset .

, , CSS reset, - .

/ reset - , , .

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

, 10 - , , , .

/ , , .

-, .

Now, if you were to use it div.header *, it’s much more expensive, but you probably won’t lose sleep if there aren’t several thousand elements left on the page.

Read and check it out for yourself.

-1
source

Source: https://habr.com/ru/post/1532590/


All Articles