手机端rem推荐的一种写法
来源:互联网 发布:linux进入图形界面 编辑:程序博客网 时间:2024/04/28 15:59
:root { font-size: 16px;}// Or you can use html// html {// font-size: 16px;// }body { font-size: 1rem;}button { font-size: 0.875rem; // All the internal/external value use in 'em' // This value use of your "font-size" as the basic font size // And you will not have any problem with the font size of the container ( Example bottom ) padding: .5em 1em; border: .125em solid #e3e3e3; @media (min-width: 48rem){ // min-width: 768px font-size: 1.125rem; } @media (min-width: 62rem){ // min-width: 992px font-size: 1.375rem; }}// Example:.container { // font-size: 14px; font-size: .875rem; width: 80rem; button { font-size: .875rem; // Still use font-size: 14px padding: .5em 1em; border: .125em solid #e3e3e3; @media (min-width: 48rem){ // min-width: 768px font-size: 1.125rem; } @media (min-width: 62rem){ // min-width: 992px font-size: 1.375rem; } }}
0 0
- 手机端rem推荐的一种写法
- 手机端 rem 的使用
- 推荐一种经过优化的PAC写法
- rem的用法(手机端代码)
- 手机页面的rem
- 手机端自动判断 rem
- 自适应手机端rem布局
- 手机端rem布局详解
- 手机端自适应(rem使用)
- 手机端px转rem
- makefile的一种写法
- 一种不理解的写法
- weakself的一种写法
- weakself的一种写法
- 一种BaseDAO的写法
- weakself的一种写法
- Makefile的一种写法
- toString的推荐写法
- AppTool 帮助类
- windows API 操作注册表函数
- 集合排序的两种方法Comparable接口和Comparator接口(比较器)
- deep learning一些网址
- caffee学习中文指南(1)(1)
- 手机端rem推荐的一种写法
- 新版MySQL的安装与问题解决方法
- PAT 乙级 1017. A除以B
- 通过笔记本自带的无线网卡开通wifi
- 将Eclipse工程迁移到Android Stutio
- Learning Python(17)--多线程编程之线程的局部变量
- 数据挖掘十大经典算法(十) CART: 分类与回归树
- synchronized 和 volatile 关键字的作用和不同
- Ajax学习(3)