maomi
介绍
入门
文档
条件样式
媒体查询
与标准 CSS 不同,媒体查询需要写在 class 里面。
stylesheet! {
class my_class {
width = Px(600);
if media (max_width = Px(600)) and (min_width = Px(300)) {
width = auto;
}
}
}
使用 @support 进行特性检测也是类似的。
stylesheet! {
class my_class {
if supports (width = Vw(100)) {
width = Vw(100);
}
}
}
伪类
伪类也要写在 class 里面。
stylesheet! {
class my_class {
if hover {
text_decoration = underline;
}
}
}
< 样式类
样式常量 >
基础入门
编写一个组件
模板语法
模板节点
模板分支
模板列表
模板更新
事件
样式表
样式类
条件样式
样式常量
样式函数
全局样式表
组件
使用组件
组件事件
属性
高级特性
服务器端渲染
i18n 国际化支持
性能建议
运行时性能建议
编译期性能建议