smart mobile studio - Style property name format -


I have noticed that a style property name used in smartphones is a different format than the one used in the CSS file.

Example: In the CSS:

  style properties in smartphones in line-height, text-overflow, white space   

- 'is ​​not a mark and therefore Camel Cass is:

  linehit, textoverflow, whitespace   

Why are these differences?

The lower-case format (such as line-height) is used in CSS files Standards for browsers.

The camel's format (eg linehit) is used internally on JavaScript objects in the browser. This format is also a standard for all browsers. But some browsers support low-case formats.

To be consistent with cross-browser, always use the camcorder format on the JavaScript object!

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -