/*css document*/
@charset "utf-8"
*{-webkit-tap-highlight-color:rgba(0,0,0,0); padding:0; margin:0;}
body{ font-size:100px; background-color:#f5f5f5; overflow-x:hidden; font-family:'microsoft yahei',Verdana,Arial,Helvetica,sans-serif;}/*font-family:'microsoft yahei',Verdana,Arial,Helvetica,sans-serif; color:#797979;*/
body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,select,table,td,textarea,th {margin:0; padding:0;}
img,input,button,select,textarea{ margin:0px; padding:0px; resize:none; font-weight: normal; border:none; outline:none; color:#999;}
input,select,textarea,button{border-radius: 4px !important;}
input,select,th{outline:none;}
input:focus,button:focus,input[type="button"]{outline:none;}
input, select, textarea:focus{color:#797979;}
fieldset,img {border:0;}
ul,li {list-style:none; padding:0; margin:0;}
h1,h2,h3,h4,h5,h6,p,em{ font-size:100%; word-wrap:break-word; font-weight: normal; font-style: normal; }
address {font-style:normal;}
i{ margin:0 3%; font-style: normal; }
a {color:#428bca;text-decoration:none; outline:none}
button::-moz-focus-inner,input::-moz-focus-inner{ padding:0; border:0; }
table { border-collapse:collapse}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
input[type="button"], input[type="submit"], input[type="reset"] {
-webkit-appearance: none;
}

/* Hides from IE-mac \*/
* html .clearfix { height: 1%; }
/* End hide from IE-mac */

.hide{display:none;}
.cen_mar{ margin:0 auto; }

/*0内边距外边距*/
.eropad{ padding: 0; }
.eromar{ margin: 0; }

/*文字大小*/
h3{ font-size:0.8em; border-bottom: 1px #dcdcdc solid; padding-bottom: 1em; color: #333;}

/*字体颜色定义*/
.colwrite{color: #fff;}
.colg6{ color:#666; }
.colg9{ color: #999; }
.colblu{ color: #02aceb; }
.colora_num{ color: #fc6705;}
.colred{ color: #fe0908; }

/*浮动*/
.f_rig{ float:right;}
.f_lef{ float:left;}
.c_cle{ clear:both; }

/*文字位置*/
.t_lef{ text-align:left;}
.t_cen{ text-align:center;}
.t_rig{ text-align:right;}

/*背景色*/
.i_boxbg{ background:#fff;}
.tabbg{ background: #f0faff; }
.orgbgbtn{ background: #fc6705; }

/*按钮*/
.i_subbtn{ width: 70px; height: 40px; border-radius: 6px; background: #02aceb; text-align: center; line-height: 30px;}
.i_btn{ height: 60px; border-radius: 8px;}
.bigok_b{ background:#02acea;}
.bigdis_b{ background:#e6e6e6; }
.middis_b{ background: #bebebe; }
.orgbtnbg{ background: #fc6705;}

.button[type="submit"]:hover,.button[type="submit"]:active,.button[type="submit"]:focus{ background:#0399d0; color:#fff;}

.btnbgred:hover,.btnbgred:active,.btnbgred:focus{ background:#d2223d; border:1px #ac2925 solid; color:#fff;}

/*flexbox*/
.flexbox{display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: horizontal; -moz-box-orient: horizontal; box-orient: horizontal; -webkit-box-pack: end; -moz-box-pack: end; box-pack: end; }
.flexbox-1{ -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;}

/*控件定义*/
input,select{ width:405px; height: 38px; padding-left: 1%; border:1px #dcdcdc solid; background: #fff; color: #999; font-size: 0.14em; line-height: 40px; }
.location_cls{width:36px;height:36px;border:1px solid #dcdcdc;display: table-cell;background: url(../img/location.png) no-repeat center;line-height: 30px;float:left;cursor:pointer;}
input[type="radio"]{ width: 16px; height: 16px; line-height: 40px; margin-left: 5px; margin-right: 1%; margin-top: 12px; }
input[type="date"]{ width: 180px; height: 38px; border:1px #dcdcdc solid; }
/*表单提交按钮 310px*/
/*button[type="submit"]{ width: 310px; height: 45px; background: #02aceb; border-radius: 4px; font-size:16px; color: #fff; }*/
/*button[type="submit"]:hover{width: 310px; height: 45px; background: #0399d0; border-radius: 4px; font-size:16px; color: #fff; }*/
.n_msubbtn{width: 310px; height: 45px; background: #02aceb; border-radius: 4px; font-size:16px; color: #fff; font-weight: 400;}
.n_msubbtn:hover, .n_msubbtn:focus, .n_msubbtn:active{ background:#0399d0; }
/*不可用*/
.dn_msubbtn{width: 310px; height: 45px; background: #02aceb; border-radius: 4px; font-size:16px; color: #b2eafe;font-weight: 400;}
/*返回及上一步按钮*/
.n_mbakbtn{width: 310px; height: 45px; background: #bebebe; border-radius: 4px; font-size:16px; color: #fff;font-weight: 400;}
.n_mbakbtn:hover, .n_mbakbtn:focus, .n_mbakbtn:active{ background: #d2d2d2; }
/*不可用*/
.dn_mbakbtn{width: 310px; height: 45px; background: #e6e6e6; border-radius: 4px; font-size:16px; color: #999;}

input[type="checkbox"]{ width: 18px; height: 18px; }
.n_inpfile{ width: 70px; height: 30px; }

/*wrap*/
/*.wrap{ min-width:320px; max-width:640px; margin:0px auto; overflow:hidden;}*/

/*header部分*/
.n_iheabg{ width: 100%; font-size:0.12em; margin-bottom: 1.6667em; border-bottom: 1px #dcdcdc solid;}
.n_iheabox{ width: 1200px; font-size: 16px; height: 4.25em; margin:0 auto; position: relative;}
.n_iheabox .n_ilogo{ width: 14%; height: 4.25em; line-height: 4.25em; display: table;}
.n_iheabox .n_ilogo a{ display: table-cell; vertical-align: middle; background: url(../img/nlogo.png) no-repeat 10px center;}
.n_iheabox ul li{ float: left; padding:0 1.8%; height: 4.25em; line-height: 4.25em;}
.n_iheabox ul li a{ display: inline-block; height: 4.25em; line-height: 4.25em; color: #333; text-decoration: none;}
.n_iheabox .n_ihnav ul li a:hover{color:#02aceb; border-bottom: 2px #02aceb solid;}
.n_iheabox .mar_l{ margin-left: 40%; }

.n_iheaid{ width: 200px; height: 4em; position: absolute; top: 0; right: 0; }
.n_iheaid>ul>li{ font-size: 0.75em; color: #666; line-height: 5em; height: 5em;}
.n_iheaic{ display: inline-block; width: 30px; height: 11px; background: url(../img/slidic.png) no-repeat center;}
.n_iheaid>ul>li:first-child{ width:20px; height: 5em; background: url("../img/heanotice.png") no-repeat center; }

.n_imsgdot{ display: none; width: 10px; height: 10px; background: #dc5f0d; border-radius: 5px; }
.n_iheaid dl dt{position: absolute; width: 50%; height:2em; left:25%; top:5.7em; background: #fff; line-height: 2em; text-align: center; font-size: 0.7em; color: #666; border:1px #dcdcdc solid; }
.n_iheaid dl dt a{color: #666;}
.n_ihnav ul,ol{margin: 0px;}
#ad_div {display:block;}
#mobile_ad_div {display:none;}

/*footer部分*/
.n_ifoot{ width: 100%; background: #e6e6e6;}
.n_ifbox{ width: 1200px; margin:0 auto; padding-top:20px;}
.n_ifbox ul li{ float: left; font-size:14px; text-align: left;}
.n_ifbox ul li:first-child{ width: 40%;}
.n_ifbox ul li:nth-child(2){ width: 20%; }
.n_ifbox ul li:nth-child(3){ width: 40%; }
.n_ifbox ul li:nth-child(3) h3 {text-align: right;}
.n_ifbox ul li:nth-child(3) div {text-align: right;}
.n_ifbox ul li:nth-child(3) div img{vertical-align: middle;}
.n_ifbox .n_icpic{ display: inline-block; width: 20%; height: 2.8em; background: #ccc; float: left; background: url(../img/phoneic.png) no-repeat center;}
.n_ifot{font-size:22px; text-decoration: none; color: #666; font-weight: normal; margin:0; border:none;}
.n_ibq{font-size: 14px; padding:1em 0; border-top: 1px #fff solid;}

/*适配部分*/
@media screen and (max-width:1200px){
.n_iheabox{ width: 100%; }
.n_ifbox{ width: 100%; }
.n_ihnav{ position: absolute; z-index: 99; left:10px; top:4.25em; width: 30%; border:1px #dcdcdc solid; }
.n_iheabox .n_ilogo a{ background:url(); }
.n_imeanic{ position: absolute; left: 10px; top:0.8em; background:#fcfcfc url(../img/navic.png) no-repeat center; display: block; width: 50px; height: 2.6em; border:1px #dcdcdc solid; border-radius: 4px;}
.n_ihnav ul li{ float: none; width: 100%; height: 3em; line-height: 3em; padding: 0; margin: 0; text-align: center; background: #f5f5f5; border-bottom: 1px #dcdcdc solid; }
.n_ihnav ul li a{ height:3em; line-height:3em; }

input,select{ width:405px; height: 38px; line-height: 40px; border:1px #dcdcdc solid; background: #fff; font-size: 0.14em; color: #999;}
input[type="radio"]{ width: 18px; height: 18px; line-height: 40px; margin-left: 5px; margin-right: 1%; margin-top: 12px; }
}
@media screen and (max-width:992px){
.n_iheabox{ width: 100%; }
.n_ifbox{ width: 100%; }
.n_ifbox ul li{ width:100%;}

.n_ihnav{ position: absolute; left:10px; top:4.25em; width: 30%; border:1px #dcdcdc solid; display: none;}
.n_iheabox .n_ilogo a{ background:url(); }
.n_imeanic{ position: absolute; left: 10px; top:0.8em; background:#fcfcfc url(../img/navic.png) no-repeat center; display: block; width: 50px; height: 2.6em; border:1px #dcdcdc solid; border-radius: 4px;}

.n_ihnav ul li{ float: none; width: 100%; height: 3em; line-height: 3em; padding: 0; margin: 0; text-align: center; background: #f5f5f5; border-bottom: 1px #dcdcdc solid; }
.n_ihnav ul li a{ height:3em; line-height:3em; }

.n_ifbox h3{ text-align: center; }
.n_ifbox ul li{ float:none; width: 100%; }
.n_ifbox ul li:first-child{ width: 100%; text-align: center;}
.n_ifbox ul li:nth-child(2){ width: 100%; }
.n_ifbox ul li:nth-child(3){ width: 100%;}
.n_ifbox ul li:nth-child(3) h3{text-align: center}
.n_ifbox ul li:nth-child(3) div{text-align: center}
.n_ifbox .n_icpic{ background-size: 30%; }

input,select{ width:100%; height: 38px; line-height: 40px; border:1px #dcdcdc solid; background: #fff; font-size: 0.14em; color: #999;}
input[type="radio"]{ width: 18px; height: 18px; line-height: 40px; margin-left: 5px; margin-right: 1%; margin-top: 12px; }
.n_mbakbtn{width: 100%;}
.n_msubbtn{ width: 100%; }
.location_cls{float: none;}
}
@media screen and (max-width:768px){
.n_iheabox{ width: 100%; }
.n_ifbox{ width: 100%; }
.n_ifbox ul li{ width:100%;}

.n_ifbox ul li{ float:none; width: 100%; }

.n_ihnav{ position: absolute; left:10px; top:4.25em; width: 30%; border:1px #dcdcdc solid; display: none; }
.n_iheabox .n_ilogo a{ background:url(); }
.n_imeanic{ position: absolute; left: 10px; top:0.8em; background:#fcfcfc url(../img/navic.png) no-repeat center; display: block; width: 50px; height: 2.6em; border:1px #dcdcdc solid; border-radius: 4px;}
.n_ihnav ul li{ float: none; width: 100%; height: 3em; line-height: 3em; padding: 0; margin: 0; text-align: center; background: #f5f5f5; border-bottom: 1px #dcdcdc solid; }
.n_ihnav ul li a{ height:3em; line-height:3em; }

.n_ifbox h3{ text-align: center; }
.n_ifbox ul li{ float:none; width: 100%; }
.n_ifbox ul li{ float:none; width: 100%; }
.n_ifbox ul li:first-child{ width: 100%; text-align: center; }
.n_ifbox ul li:nth-child(2){ width: 100%; }
.n_ifbox ul li:nth-child(3){ width: 100%;}
.n_ifbox ul li:nth-child(3) img {width:35px;}
.n_ifbox .n_icpic{ background-size: 30%; }

input,select{ width:100%; height: 38px; line-height: 40px; border:1px #dcdcdc solid; background: #fff; font-size: 0.14em; color: #999;}
input[type="radio"]{ width: 18px; height: 18px; line-height: 40px; margin-left: 5px; margin-right: 1%; margin-top: 12px; }
.n_mbakbtn{width: 100%;}
.n_msubbtn{ width: 100%; }
#ad_div {display:none;}
#mobile_ad_div {display:block;}
}
@media screen and (max-width:640px){
/*body,button,input,select,table,textarea{font-size:0.14em;}*/

.n_iheaid{ width: 190px; }
.n_ifbox h3{ text-align: center; }
.n_ifbox ul li{ float:none; width: 100%; }
.n_ifbox .n_icpic{ background-size: 30%; }

.n_mbakbtn{width: 100%; margin-bottom:1em;}
.n_msubbtn{ width: 100%; }
}

自适应布局all样式的更多相关文章

  1. 常用样式制作思路 自定义按钮~自适应布局~常见bug seajs简记 初学者必知的HTML规范 不容忽略的——CSS规范

    常用样式制作思路   学习常用样式总结参考来自这里 带点文字链接列表利用:before实现 1 <!DOCTYPE html> 2 <html lang="en" ...

  2. 微信小程序新单位rpx与自适应布局

    rpx是微信小程序新推出的一个单位,按官方的定义,rpx可以根据屏幕宽度进行自适应,在rpx出现之前,web页面的自适应布局已经有了多种解决方案,为什么微信还捣鼓出新的rpx单位?在解释这个单位前,我 ...

  3. 这可能是史上最全的CSS自适应布局总结教程

    标题严格遵守了新广告法,你再不爽,我也没犯法呀!话不多说,直入正题. 所谓布局,其实包含两个含义:尺寸与定位.也就是说,所有与尺寸和定位相关的属性,都可以用来布局. 大体上,布局中会用到的有:尺寸相关 ...

  4. CSS自适应布局(包括两边宽度固定中间宽度自适应与中间宽度固定两边宽度自适应)

    1.两边宽度固定,中间宽度自适应 (1)非CSS3布局,浮动定位都可以(以下用浮动) css样式: #left { float: left;width: 200px; background: lime ...

  5. rem自适应布局的回顾总结

    使用rem实现自适应布局,应该算是当前移动前端的一大趋势,有些人对此还有点迷惑,搞不懂rem是如何实现自适应布局,如何根据设计稿来调整rem的值?rem布局如何用雪碧背景图片?rem一定要加载JS吗? ...

  6. 【转】CSS深入理解流体特性和BFC特性下多栏自适应布局

    这篇文章发布于 2015年02月12日,星期四,23:36,归类于 css相关. 阅读 30873 次, 今日 63 次 by zhangxinxu from http://www.zhangxinx ...

  7. 自定义按钮~自适应布局~常见bug

    一.元件 自定义按钮可用button或a   display为 inline-block 方便设置格式,通过 padding,height,line-height,font-size设置按钮的大小 & ...

  8. 移动端利用rem实现自适应布局

    好久没有写博客了,刚好说说最近遇到的移动端布局问题吧. 本来一直是觉得我的页面布局能力还是不错的,当然,是相对于较基础的来说还是不错的.不过,自己写的案例终归是跟实际开发有区别的,自己写案例的是觉得这 ...

  9. 你知道BFC、IFC、FFC、GFC及多栏自适应布局吗?

    FC(Formatting Context)格式化内容,常见的FC有BFC.IFC.FFC.GFC四种类型,BFC和IFC是W3C CSS2.1规范提出的概念,FFC和GFC是W3C CSS3规范提出 ...

随机推荐

  1. Android自定义控件之自定义属性(二)

    前言: 上篇介绍了自定义控件的基本要求以及绘制的基本原理,本篇文章主要介绍如何给自定义控件自定义一些属性.本篇文章将继续以上篇文章自定义圆形百分比为例进行讲解.有关原理知识请参考Android自定义控 ...

  2. CA认证原理以及实现(下)

    在上述的文章后了解到原理之后,我们这篇文章来进行CA的搭建. OPEN SSL 环境搭建在基础原理中我们提到了两种认证服务,单项认证服务和双向认证服务,我们就以双向认证服务举例说明.OpenSSL是一 ...

  3. 怎样在ubuntu 系统上为 php 加上 redis 扩展

    近期一个项目.,想用redis 作为数据库,php是不待redis 扩展,必须安装,怎么安装呢?我在网上找的非常多资料发现都是预编译的.但都没成功.于是就找了第二种方法是不须要编译直接安装就能够了. ...

  4. angular md-toast 颜色

    How to show md-toast with background color https://codepen.io/neilkalman/pen/jWBqve <div ng-contr ...

  5. 安装惠普M1136打印机一直处于“新设备已连接”状态怎么办?

    百度的答案是从控制面板的添加打印机入手,我试了遇到找不到设备的问题. 其实问题的原因是在安装驱动时一直把打印机到电脑的USB插着.我的解决方案是: 1.点击M1130MFP_M1210MFP开始安装, ...

  6. C结构体之位域(位段)(转)

    有些信息在存储时,并不需要占用一个完整的字节, 而只需占几个或一个二进制位.例如在存放一个开关量时,只有0和1 两种状态, 用一位二进位即可.为了节省存储空间,并使处理简便,C语言又提供了一种数据结构 ...

  7. Foundation框架 - NSException类

    NSException类 WBStudentManager.h #import <Foundation/Foundation.h> NSString* const NameInvalidE ...

  8. H5 手机横竖屏判读

    $.fn.screenCheck = function() { var pDiv = $('<div></div>'); pDiv.addClass("screenC ...

  9. Matlab中图片保存的四种方法

    matlab的绘图和可视化能力是不用多说的,可以说在业内是家喻户晓的.Matlab提供了丰富的绘图函数,比如ez**系类的简易绘图函数,surf.mesh系类的数值绘图函数等几十个.另外其他专业工具箱 ...

  10. LeetCode(15)题解--3Sum

    https://leetcode.com/problems/3sum/ 题目: Given an array S of n integers, are there elements a, b, c i ...