programmer group

Rem

Using REM principle, 62.5%, compressing web pages according to the equal ratio of screen width I. Preface When we write web pages, we often need to take into account the display of web pages in different screen widths. Sometimes in order to save time, no time to write new pages, but also for compatibility considerations, this requires the use of equal-ratio compression. The core of isometric compression is rem Two, text(1) Use of REM Rem is a new unit attribute in CSS3 Unit of relative length, multiple of font-size calculated relative to...

programmer group

Talking about the Use of HTML5 Web Worker

Web Worker is a JavaScript multi-threaded solution provided by HTML5. We can leave some large amount of computational code to the Web Worker to run without freezing the user interface. One: How to Use Worker The basic principle of Web Worker is to use the Worker class to load a JavaScript file in the main thread of the current JavaScript to open a new thread, which has the effect of non-blocking execution, and provides the interface of data exchange between the main thread and the new thread: postMessage, onmessage. So how to use it,...