Commit 2d8100e7 authored by 宋帮潮's avatar 宋帮潮

Updates ionic/ionic-code-style.md

Auto commit by GitBook Editor
parent acc4d483
...@@ -26,4 +26,15 @@ ...@@ -26,4 +26,15 @@
![](/picture/h3.png) ![](/picture/h3.png)
### IV. 前端样式开发注意点
* 1)class选择器在SCSS文件里编写样式时要注意在前面加‘.’ ,如下图所示:
![](/picture/a.png)
* 2)前端布局开发,建议使用flex布局(方便)
* 3)前端样式在写宽度 with时,必须使用百分号(%)来确定宽度,不允许使用px。原因:使用%来确定with,不会随着屏幕的增大而导致样式改变。如下图所示:
![](/picture/a1.png)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment