NEC 框架规范 template media

时间:2022-04-23
本文章向大家介绍NEC 框架规范 template media,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
<!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{
 
}