• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Layout Description
2
3
4The baseline width for page design is 720 logical pixels. The display width of a page element depends on the ratio of the screen width to the baseline width.
5
6
7For example, when the width of a component is 100 px, its display width is converted as follows:
8
9
10On a screen with the width of 720 physical pixels, the display width is 100 physical pixels. On a screen with the width of 1440 physical pixels, the display width is 200 physical pixels.
11
12Basic page elements include title, text, and image areas. Each basic element may contain multiple sub-elements. You can add components, such as buttons, switches, and progress bars, to these elements and sub-elements as required. When setting the layout, you need to consider the following for each basic element:
13
14
15- Size and arrangement
16
17- Overlapping with other elements
18
19- Alignment, padding, and margin
20
21- Sub-elements and their positions
22
23- Container components and their types
24
25  You can disassemble elements on the page first and then implement them in sequence. This reduces visual confusion and logical conflicts caused by element nesting and improves code readability for easier modification. For example, as shown below, you disassemble the page elements and elements in the comment area.
26
27  Figure 1 Page layout
28
29  ![en-us_image_0000001222967792](figures/en-us_image_0000001222967792.png)
30
31  Figure 2 Layout of the comment area
32
33![en-us_image_0000001267767889](figures/en-us_image_0000001267767889.png)
34