当前位置:网站首页>第三次HarmonyOS培训
第三次HarmonyOS培训
2022-08-03 05:10:00 【曲水流觞683】
一,页面样式设计注意事项
页面 CSS 支持 id、class、tag 选择器,建议使用 class 选择器。
页面样式系统基于 flex 弹性布局进行设置,默认就是 flex 弹性布局,需要注意,弹性布局会自动的拉升和压缩内部元素模块宽度、高度。
鸿蒙封装的 JS 组件,有一个专门的样式说明,这个和传统的 CSS 写法有很大的差异,这个尤其需要注意。

2.在div组件中通过class引用定义样式
3. 使用容器组件list实现区域滚动效果 
4.滑动容器swiper
边栏推荐
- 接口测试框架实战(三)| JSON 请求与响应断言
- 1058 选择题 (20 分)(C语言)
- 1095 解码PAT准考证 (25 分)(C语言)
- 建造者模式(Builder Pattern)
- Peptides mediated PEG DSPE of phospholipids, targeted functional materials - PEG - RGD/TAT/NGR/APRPG
- Kotlin-Flow common encapsulation class: the use of StateFlow
- JS bottom handwriting
- 接口测试实战| GET/POST 请求区别详解
- Detailed explanation of MOSN reverse channel
- 高效率科研神器——小软件、大能量
猜你喜欢
随机推荐
ss-2.子项目互相访问(order80 -> payment8001)
Two ways to simulate multi-user login in Jmeter
Tag stack - stack monotonically preparatory knowledge - lt. 739. The daily temperature
高可用 两地三中心
Shell conditional statement judgment
Interface testing framework combat (3) | JSON request and response assertion
[Harmony OS] [ARK UI] ETS context basic operations
接口测试框架实战(二)| 接口请求断言
Redis6学习笔记
BIOTIN ALKYNE CAS: 773888-45-2 Price, Supplier
JS底层手写
2. 两数相加
js implements a bind function
tag单调栈-单调栈预备知识-lt.739. 每日温度
在树莓派上搭建属于自己的网页(1)
The problem that the rosbag tool plotjuggler cannot open rosbag
GIS数据漫谈(五)— 地理坐标系统
在线密码生成工具推荐
High availability, two locations and three centers
接口测试框架实战(四)| 搞定 Schema 断言









