css It should be written in the following order. The principle is positioning and layout first, details second
display mode display
positioning or floating mode position, float, clear
Up, down, left and right positioning offsets left, top, right, bottom
Height and width dimensions height, width
Inner and outer padding margin, padding
Border border
Background
Color color
Font text font
Text line-height, text-align
Other miscellaneous
Z-index usage specifications
In principle, module css must comply with the following specifications when using absolute positioning, but it is not enforced. During the development process, use less absolute positioning layout and more use the layout manager to manage the layout.
Map: The index range used is from 0-99, including tile maps, custom layers, legends, layer management, etc.
Interface business Module: The used index ranges from 100-199, real-time water conditions list, etc.
Footer: The used index range is from 700-799, including copyright, filing, Technical support, etc.
Navigation: The index range used is from 800-899, including logo, system name, navigation bar, etc.
Pop-up box: The index range used is from 900-999, including settings panel, prompt box, etc.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn