NEC 框架规范 template media
2016-02-24 09:57
232 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>NEC:更好的CSS方案</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="shortcut icon" href="img/favicon.ico"/>
<link rel="apple-touch-icon" href="img/touchicon.png"/>
</head>
<body>
<div class="g-doc">
<div class="g-hd">
</div>
<div class="g-bd">
<div class="g-mn">
</div>
<div class="g-sd">
</div>
</div>
<div class="g-ft">
</div>
</div>
</body>
</html>
/* media */
/* 横屏 */
@media screen and (orientation:landscape){
}
/* 竖屏 */
@media screen and (orientation:portrait){
}
/* 窗口宽度<960,设计宽度=768 */
@media screen and (max-width:959px){
}
/* 窗口宽度<768,设计宽度=640 */
@media screen and (max-width:767px){
}
/* 窗口宽度<640,设计宽度=480 */
@media screen and (max-width:639px){
}
/* 窗口宽度<480,设计宽度=320 */
@media screen and (max-width:479px){
}
/* windows UI 贴靠 */
@media screen and (-ms-view-state:snapped){
}
/* 打印 */
@media print{
}
<html>
<head>
<meta charset="utf-8"/>
<title>NEC:更好的CSS方案</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="shortcut icon" href="img/favicon.ico"/>
<link rel="apple-touch-icon" href="img/touchicon.png"/>
</head>
<body>
<div class="g-doc">
<div class="g-hd">
</div>
<div class="g-bd">
<div class="g-mn">
</div>
<div class="g-sd">
</div>
</div>
<div class="g-ft">
</div>
</div>
</body>
</html>
/* media */
/* 横屏 */
@media screen and (orientation:landscape){
}
/* 竖屏 */
@media screen and (orientation:portrait){
}
/* 窗口宽度<960,设计宽度=768 */
@media screen and (max-width:959px){
}
/* 窗口宽度<768,设计宽度=640 */
@media screen and (max-width:767px){
}
/* 窗口宽度<640,设计宽度=480 */
@media screen and (max-width:639px){
}
/* 窗口宽度<480,设计宽度=320 */
@media screen and (max-width:479px){
}
/* windows UI 贴靠 */
@media screen and (-ms-view-state:snapped){
}
/* 打印 */
@media print{
}
相关文章推荐
- jsp日期控件My97DatePicker的使用
- js时间处理
- SubShader 中的标签-Culling & Depth Testing
- 【poj2752】Seek the Name, Seek the Fame KMP
- JQuery EasyUI的使用
- Javascript的正则表达式
- Unity3D学习笔记(二十三)导入WOW角色
- 关于JDBC
- jquery通过prop函数验证checkbox是否选中
- 百度前端研发实习岗面试总结
- 论文中的state-of-the-art
- Play framework 1.2.7 安装 module
- JS判断页面是否加载完成
- 在ACCESS中LIKE的用法
- sql2014 order by
- c语言入门之项目3.5——利用for循环输出一个三角形
- API Guides(四)——Providing Resources To Resource Types
- Access数据库的基本操作
- 如何在内存中创建Solid
- 第一篇博客