自适应布局all样式
/*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样式的更多相关文章
- 常用样式制作思路 自定义按钮~自适应布局~常见bug seajs简记 初学者必知的HTML规范 不容忽略的——CSS规范
常用样式制作思路 学习常用样式总结参考来自这里 带点文字链接列表利用:before实现 1 <!DOCTYPE html> 2 <html lang="en" ...
- 微信小程序新单位rpx与自适应布局
rpx是微信小程序新推出的一个单位,按官方的定义,rpx可以根据屏幕宽度进行自适应,在rpx出现之前,web页面的自适应布局已经有了多种解决方案,为什么微信还捣鼓出新的rpx单位?在解释这个单位前,我 ...
- 这可能是史上最全的CSS自适应布局总结教程
标题严格遵守了新广告法,你再不爽,我也没犯法呀!话不多说,直入正题. 所谓布局,其实包含两个含义:尺寸与定位.也就是说,所有与尺寸和定位相关的属性,都可以用来布局. 大体上,布局中会用到的有:尺寸相关 ...
- CSS自适应布局(包括两边宽度固定中间宽度自适应与中间宽度固定两边宽度自适应)
1.两边宽度固定,中间宽度自适应 (1)非CSS3布局,浮动定位都可以(以下用浮动) css样式: #left { float: left;width: 200px; background: lime ...
- rem自适应布局的回顾总结
使用rem实现自适应布局,应该算是当前移动前端的一大趋势,有些人对此还有点迷惑,搞不懂rem是如何实现自适应布局,如何根据设计稿来调整rem的值?rem布局如何用雪碧背景图片?rem一定要加载JS吗? ...
- 【转】CSS深入理解流体特性和BFC特性下多栏自适应布局
这篇文章发布于 2015年02月12日,星期四,23:36,归类于 css相关. 阅读 30873 次, 今日 63 次 by zhangxinxu from http://www.zhangxinx ...
- 自定义按钮~自适应布局~常见bug
一.元件 自定义按钮可用button或a display为 inline-block 方便设置格式,通过 padding,height,line-height,font-size设置按钮的大小 & ...
- 移动端利用rem实现自适应布局
好久没有写博客了,刚好说说最近遇到的移动端布局问题吧. 本来一直是觉得我的页面布局能力还是不错的,当然,是相对于较基础的来说还是不错的.不过,自己写的案例终归是跟实际开发有区别的,自己写案例的是觉得这 ...
- 你知道BFC、IFC、FFC、GFC及多栏自适应布局吗?
FC(Formatting Context)格式化内容,常见的FC有BFC.IFC.FFC.GFC四种类型,BFC和IFC是W3C CSS2.1规范提出的概念,FFC和GFC是W3C CSS3规范提出 ...
随机推荐
- 现代数字信号处理——AR模型
1. AR模型概念观 AR模型是一种线性预测,即已知N个数据,可由模型推出第N点前面或后面的数据(设推出P点),所以其本质类似于插值,其目的都是为了增加有效数据,只是AR模型是由N点递推, ...
- Mysql5.6审计功能
1. 前言 为了安全和操作的可追溯性考虑,越来越多的公司增加了审计功能.mysql5.5推出了相关的审计功能,到5.6.20功能进一步完好.算是勉强可用了.尽管细粒度方面做的不是太好. ...
- JavaScript技巧手冊
js小技巧 每一项都是js中的小技巧,但十分的有用! 1.document.write(""); 输出语句 2.JS中的凝视为// 3.传统的HTML文档顺序是:documen ...
- tcp ip协议笔记(1)——简单介绍
前言 本人记性不佳,看书健忘,以此笔记来记录看书后自己所知所想,已达到加深对tcp ip的理解.本笔记不过我看完书后自己所写的总结,权当是书后复习. 一.为什么会有tcp ip协议 ...
- mysql性能优化-慢查询分析、优化索引和配置 MySQL索引介绍
MySQL索引介绍 聚集索引(Clustered Index)----叶子节点存放整行记录辅助索引(Secondary Index)----叶子节点存放row identifier-------Inn ...
- POJ 1141 Brackets Sequence (区间DP)
Description Let us define a regular brackets sequence in the following way: 1. Empty sequence is a r ...
- Cocos2d-x 3.0final 终结者系列教程15-win7+vs2012+adt+ndk环境搭建(无Cygwin)
最终不用Cygwin 了.非常高兴 为什么要用Win7? 由于VS2012要求Win7以上系统才干安装! 为什么要用vs2012? 由于VS2012才支持C++11! 为什么要支持C++11? 由于C ...
- 简单的看Unicode和UTF-8的区别
作者:uuspider链接:http://www.zhihu.com/question/23374078/answer/65352538来源:知乎著作权归作者所有,转载请联系作者获得授权. 举一个例子 ...
- Android数据自己主动更新库DataAutoRefresh
非常多android应用.比方音乐播放器.视频播放器.小说阅读器或者其他须要获取本地磁盘指定数据格式数据列表的应用,在磁盘数据有变化(新增或者删除.比方下载完毕,拔TF卡.换TF卡)时.须要自己主动更 ...
- kubernetes故障现场一之Orphaned pod
系列目录 问题描述:周五写字楼整体停电,周一再来的时候发现很多pod的状态都是Terminating,经排查是因为测试环境kubernetes集群中的有些节点是PC机,停电后需要手动开机才能起来.起来 ...