├── 1442545208179.png ├── 1骰子布局.html ├── CSS3弹性盒和媒体查询、响应式布局.html ├── CSS3当中的长度单位.png ├── Ghost开源博客页面自适应 ├── .project ├── Ghost.html ├── data │ ├── 4f5566c1f7bc28b3f7ac1fada8abe.png │ ├── bootstrap.min.css │ ├── bootstrap.min.js │ ├── de1b2911072f5a4eff82abdb62632.png │ ├── e447fa21190690b28f1957d5937f4.png │ ├── fcb3879e14429d75833a461572e64.jpg │ ├── font-awesome.min.css │ ├── ghost-url.min.js │ ├── h.js │ ├── highlight.min.js │ ├── jquery.fitvids.min.js │ ├── jquery.magnific-popup.min.js │ ├── jquery.min.js │ ├── magnific-popup.min.css │ ├── main.js │ ├── monokai_sublime.min.css │ ├── screen.css │ ├── share.js │ └── share_style0_24.css └── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── README.md ├── images ├── 234.png ├── README.txt ├── media.jpg ├── pic1.png ├── pic10.png ├── pic11.png ├── pic12.png ├── pic13.png ├── pic14.png ├── pic15.png ├── pic16.png ├── pic17.png ├── pic18.png ├── pic19.png ├── pic2.png ├── pic20.png ├── pic3.png ├── pic4.png ├── pic5.png ├── pic6.png ├── pic7.png ├── pic8.png └── pic9.png ├── jQuery ├── JQuery.html ├── css │ └── jq.css ├── favicon.ico ├── font │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff ├── img │ ├── banner.gif │ ├── book │ │ ├── book1.jpg │ │ ├── book2.jpg │ │ └── book3.jpg │ ├── contentText_resource_imglink.jpg │ ├── content_ico │ │ ├── famous.gif │ │ ├── ibm.gif │ │ ├── maxcdn.gif │ │ └── neobux.gif │ ├── downloadBox_link.gif │ ├── ico.ico │ ├── introLogo.jpg │ ├── logo.gif │ ├── logo.png │ ├── sprite.gif │ ├── sprite.png │ └── sprite.psd └── js │ ├── minmax.js │ └── respond.min.js ├── pic1.PNG ├── pic2.PNG ├── 主轴是X轴.png ├── 主轴是Y轴.png ├── 响应式 ├── .project ├── css │ └── demo.css ├── demo.html ├── images │ ├── 1.jpg │ ├── 1.png │ ├── 2.jpg │ ├── 2.png │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── 6.jpg │ ├── logo.png │ ├── swiper1.jpeg │ └── top-bg.png └── js │ └── jquery-1.11.1.min.js ├── 多列布局.html ├── 拉钩 ├── IMG_0038.PNG ├── IMG_0039.PNG └── IMG_0040.PNG └── 移动端布局的3种方法 ├── 0移动端基本概念.jpg ├── 1移动端基本概念.jpg ├── QQ图片20170313224245.png ├── lagou.html ├── rem-11.png ├── taobao.html ├── wangyi.html ├── 屏幕分辨率.png └── 移动端布局.jpg /1442545208179.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/1442545208179.png -------------------------------------------------------------------------------- /1骰子布局.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 骰子布局 8 | 78 | 79 | 80 |
81 | 82 |
83 |
84 | 85 | 86 |
87 |
88 | 89 | 90 | 91 |
92 |
93 |
94 | 95 | 96 |
97 |
98 | 99 | 100 |
101 |
102 |
103 |
104 | 105 | 106 |
107 |
108 | 109 |
110 |
111 | 112 | 113 |
114 |
115 |
116 |
117 | 118 | 119 | 120 |
121 |
122 | 123 | 124 | 125 |
126 |
127 | 128 | 129 | -------------------------------------------------------------------------------- /CSS3弹性盒和媒体查询、响应式布局.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CSS3弹性盒 6 | 39 | 40 | 41 | 42 |

CSS3弹性盒和媒体查询、响应式布局

43 |

学习目标

44 | 53 |

一、怪异盒模型的简介

54 |
55 |
56 |
57 |

二、弹性盒模型

58 |
Flexbox布局(Flexible Box)模块(目前处于W3C工作草案)旨在提供一个更佳有效的布局方式,更好的控制项目的对齐和自由分配容器空间,即使它们的大小是未知的或动态的。因此得其名"flex"。
59 | Flex布局背后的主要思想是给容器控制项目(Flex项目)的宽度、高度的能力,使用Flex项目可以自动填满容器的可用空间(主要是适应所有类型的显示设备和屏幕大小)。Flex容器使用Flex项目可以自动放大与收缩,用来填补可用的空闲空间。
60 | 注:Flexbox布局比较适合Web应用程序的一些小组件和小规模的布局,而Grid布局(网格单元格布局)更适合用于一些大规模的布局。
61 | 因为Flexbox是一个模块,而不是一个单一的属性,他涉及很多东西。其中有些概念是需要我们去理解的,比如“flex容器”-->一些属于容器上的属性(父元素);“flex项目”-->一些属于容器子元素上的属性;
62 | 63 |
64 |

三、Flex容器属性(添加在父级元素上的)

65 |

1)display:定义一个Flex容器,根据其取的值来决定是内联还是块。Flex容器会为其内容建立新的伸缩格式化上下文。 66 |

两种方式 67 |

display : flex

68 |

display : inline-flex

69 |

这样做将元素定义为弹性容器,其子元素即弹性子元素。

70 |

flex 值表示弹性容器为块级。占用一行。

71 |

inline-flex 值表示弹性容器为行内元素,可以多个元素并列在一行 。
72 |

73 |

74 | 2)flex-direction:创建方轴,从而定义Flex项目在Flex容器中放置的方向。

75 |

Flexbox是一种单方向的布局概念。认为Flex项目主要排列方式要么是水平排列,要么是垂直列排列 76 |
77 |

.container {
78 | flex-direction: row | row-reverse | column | column-reverse;
79 | } 80 |
81 | 3)flex-wrap:默认情况之下,Flex项目都尽可能在一行显示。你可以根据flex-wrap的属性值来改变,让Flex项目多行显示。方向在这也扮演了一个重要角度,决定新的一行堆放方向。
82 |
.container {
83 | flex-wrap: nowrap | wrap | wrap-reverse;
84 | }

85 | 4)flex-flow(适用于flex容器元素):
86 |
这是flex-direction和flex-wrap两个属性的缩写。两个属性决定了伸缩容器的主轴与侧轴。默认值是row nowrap(中间用空格隔开)。
87 | 语法:flex-flow: <‘flex-direction’> || <‘flex-wrap’>
88 | 5)justify-content:设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式
89 |
justify-content:flex-start | flex-end | center | space-between | space-around
90 | 当弹性盒里一行上的所有子元素都不能伸缩或已经达到其最大值时,这一属性可协助对多余的空间进行分配。当元素溢出某行时,这一属性同样会在对齐上进行控制


91 | 6)align-items:定义flex子项在flex容器的当前行的侧轴(纵轴)方向上的对齐方式。 92 |
93 |
94 |

align-items: flex-start | flex-end | center | baseline(项目位于容器的基线上) | stretch(默认值。);

95 |

伸缩项目可以在伸缩容器的当前行的侧轴上进行对齐,这类似于justify-content属性,但是是另一个方向。align-items可以用来设置伸缩容器中包括匿名伸缩项目的所有项目的对齐方式。
96 |
97 | 98 |

99 |
100 | 7)align-content:
101 |
102 |

align-content:flex-start |flex-end|center|space-between|space-around | stretch
103 | 当伸缩容器的侧轴还有多余空间时,align-content属性可以用来调准伸缩行在伸缩容器里的对齐方式,这与调准伸缩项目在主轴上对齐方式的justify-content属性类似。请注意本属性在只有一行的伸缩容器上没有效果。

104 | 105 | 106 |
107 | 108 | 109 | 110 | 111 |

四、Flex项目属性(添加在子元素上的)

112 | 1)order:<integer>:用整数值来定义排列顺序,数值小的排在前面。可以为负值。
113 |
114 |

默认情况,Flex项目是按文档源的流顺序排列。然而,在Flex容器中可以通过order属性来控制Flex项目的顺序源。设置或检索弹性盒模型对象的子元素出現的順序。
115 | order定义将会影响 <' position '> 值为static元素的层叠级别,数值小的会被数值大的盖住。
116 |

117 | 118 | 119 |
120 | 2)flex-grow:number该属性控制flex容器是单行或者多行,同时横轴的方向决定了新行堆叠的方向。
121 |
122 |

该属性控制flex容器是单行或者多行,同时横轴的方向决定了新行堆叠的方向。如果所有Flex项目的flex-grow设置为1时,表示Flex容器中的Flex项目具有相等的尺寸。如果你给其中一个Flex项目设置flex-grow的值为2,那么这个Flex项目的尺寸将是其他Flex项目两倍(其他Flex项目的flex-grow值为1)。注意:flex-grow取负值将失效。
123 |
124 |

125 | 126 |
127 | 3)flex-shrink:<number>设置或检索弹性盒的收缩比率
128 |
129 |

根据弹性盒子元素所设置的收缩因子作为比率来收缩空间。注意:flex-shrink取负值将失效。
130 |

131 | 132 |
133 | 4)flex-basis:<length> | <percentage> | auto | content 134 |
135 |
136 |

设置或检索弹性盒伸缩基准值。如果所有子元素的基准值之和大于剩余空间,则会根据每项设置的基准值,按比率伸缩剩余空间.。
137 | 如果设置为0,内容不在考虑周围额外空间。如果设置为auto,额外空间会基于flex-grow值做分布。如下图所示:
138 |
139 |

140 | 141 |
142 | 5)flex:none | <' flex-grow '> <' flex-shrink >'? || <' flex-basis '>
143 |
144 |

复合属性。设置或检索弹性盒模型对象的子元素如何分配空间。
145 | flex是flex-grow,flex-shrink和flex-basis三个属性的缩写。第二个和第三个参数(flex-shrink和flex-basis)是可选值。其默认值是0 1 auto。
146 | 如果缩写「flex: 1」, 则其计算值为「1 1 0%」
147 | 如果缩写「flex: auto」, 则其计算值为「1 1 auto」
148 | 如果「flex: none」, 则其计算值为「0 0 auto」
149 | 如果「flex: 0 auto」或者「flex: initial」, 则其计算值为「0 1 auto」,即「flex」初始值
150 |

151 |
152 |
153 |
154 | 6)align-self:auto | flex-start | flex-end | center | baseline | stretch
155 |
156 |

定义flex子项单独在侧轴(纵轴)方向上的对齐方式。
157 | 注意:float,clear和vertical-align属性在Flex项目中无效。
158 |

159 |
160 | 161 |
162 |

五、媒体查询的概念和应用

163 | 1)媒体查询的引用方法 164 |
165 |

在实际中媒体类型有近10中之多,实际常用的也就那么几种。不同的媒体类型引用方法也是有很多的,常见的媒体类型的引用主要有:link标签、xml方式、@import和css3新增的@import几种。

166 |

1、 link方法:

167 |

link方法引入类型其实就是在<link>标签引入样式的时候,通过link标签中的media属性来制定不同的媒体类型,这种方式引入媒体类型时常跟着引用的样式文件走。如:

168 |

<link rel="stylesheet" type="text/css" href="style.css" media="screen" />

169 |

<link rel="stylesheet" type="text/css" href="print.css" media="print" />

170 |

2、 @media方式

171 |

@media是css3中新引进的一个特性,被称为媒体查询。在页面中也可以通过这个属性来引入媒体查询,它和@import有点类似,也是具有2中方式

172 |

A:在样式文件中引入媒体类型: @media screen{ 选择器{ 你的样式代码 } }

173 |

B:使用@media 引入媒体类型的方式是在head标签中的style引入

174 |

<head>

175 |

<style type="text/css">

176 |

@media screen{选择器{你的代码样式}}

177 |

</style>

178 |

</head>

179 |
180 | 2)常用Media query设备特性 181 |
182 |
183 | 184 |

六、Responsive web design 响应式设计布局概念

185 | 1)Responsive 设计特点 186 |
Responsive 网页设计不但要考虑其元素布局的秩序,还要做到“有求必应”,因此需要满足三个条件。
187 | 1、网站必须建立灵活的网格基础;
188 | 2、引用到网站的图片必须是可伸缩的;
189 | 3、不同的显示风格,需要在Media Query上设置不同的样式
190 | 注意:缺少任何一个功能,就不能称为是合格的Responsive 网页设计 191 | 192 |
193 | 2)Responsive 中的术语 194 |
195 |

1、流体网格
196 | 流体网格是一个简单的网格系统,这种网格设计参考了流体设计中的网格系统,将每个网格格子使用百分比单位
197 |

198 |

来控制网格大小,这种网格系统最大的好处就是让网格大小随时根据屏幕尺寸做出相对应的比例缩放。
199 | 2、弹性图片
200 | 弹性图片指的是不给图片设置固定尺寸,而是根据流体网格进行缩放,用于适应各种网格的尺寸。而实现方法是
201 |

202 |

比较简单,一条代码就能确定 比如img{max-width:100%;}但是在IE8浏览器会出现图片失踪的bug,如果
203 |

204 |

我们给每个断点提供不同的图片是比较头疼的一件事情,所以我们可以使用:
205 | 1)、使用background-image给元素添加背景图片
206 | 2)、显示/隐藏父元素,给父元素使用不同的图片,然后通过media query来控制这些图片显示或者隐藏
207 | 3、媒体查询

208 |

媒体查询可以根据设备的尺寸,查询出适配的样式,使用这个属性可以根据用户终端设备适配对
209 |

210 |

应的样式,Responsive 设计最关注的的是根据用户的使用设备的当前宽度,web页面将加载一个备用的样式,
211 |

212 |

实现特定的页面风格
213 | 4、屏幕分辨率

214 |

指的是用户使用的设备浏览web页面时的分辨率,比如智能手机浏览器,移动电脑浏览器,平板
215 |

216 |

电脑浏览器和桌面浏览器。只有知道有哪种分辨率,才能调用对应的样式。
217 | 5、主要断点:

218 |

简单来说就是设备宽度的临界点,媒体特性中min-width和max-width对应的属性值就是响应式
219 |

220 |

设计中的断点值,简单来说就是使用主要断点和次要断点,创建媒体查询的条件,而每个断点会对应一个样式文件。
221 | 设置断点要把握以下3个要点
222 | 1)、满足主要的断点
223 | 2)、有可能的话添加一些别的断点
224 | 3)、设置高于1024px的桌面断点。

225 |

226 | 227 |
228 | 3)Responsive 布局技巧 229 |
230 |

1.尽量少用无关紧要的div
231 | 2.不要使用内联元素(inline)
232 | 3.尽量少用js或flash
233 | 4.丢去没用的绝对定位和浮动样式
234 | 5.屏弃任何冗余结构和不使用100%设置

235 |

那么有哪些设置能帮助Responsive确定更好的布局呢?

236 |

1.使用HTML5 Doctype和相关指南
237 | 2.重置好你的样式(reset.css)
238 | 3.一个简单的有语义的核心布局
239 | 4.给重要的网页元素使用简单的技巧,比如导航菜单之类元素

240 | 241 |
242 | 4)Meta 标签定义 243 |
244 |

为了让智能手机根据媒体查询匹配对应的样式,特意添加了一个特殊的meta标签。主要作用就是让智能手机浏览网页时能进行优化,并且可以自定义可视区域的尺寸和缩放级别。

245 |

设置Meta标签

246 |

<name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
247 | 这段代码的几个参数解释:
248 | width = device-width:宽度等于当前设备的宽度
249 | initial-scale: 初始的缩放比例(默认设置为1.0)
250 | minimum-scale:允许用户缩放到的最小比例(默认设置为1.0)
251 | maximum-scale:允许用户缩放到的最大比例(默认设置为1.0)
252 | user-scalable:用户是否可以手动缩放(默认设置为no,因为我们不希望用户放大缩小页面)

253 | 254 |
255 |
256 |

常见的一些网页布局单位

257 |
px:绝对单位,页面按精确像素展示
258 | em:相对单位,基准点为父节点字体的大小,如果自身定义了font-size按自身来计算(浏览器默认字体是16px),整个页面内1em不是一个固定的值。
259 | rem:相对单位,可理解为”root em”, 相对根节点html的字体大小来计算,CSS3新加属性,chrome/firefox/IE9+支持。
260 | (另外需注意chrome强制最小字体为12号,即使设置成 10px 最终都会显示成 12px,当把html的font-size设置成10px,子节点rem的计算还是以12px为基准,所以网上很多文章提到的将html的font-size设为10方便计算不是那么可取)。
261 | rem在移动端应用可参考淘宝的页面http://m.taobao.com (html的font-size通过动态计算获取)
262 | vw:viewpoint width,视窗宽度,1vw等于视窗宽度的1%。
263 | vh:viewpoint height,视窗高度,1vh等于视窗高度的1%。
264 | vmin:vw和vh中较小的那个。
265 | vmax:vw和vh中较大的那个。
266 | vw, vh, vmin, vmax:IE9+局部支持,chrome/firefox/safari/opera支持,iOS safari 8+支持,Android browser4.4+支持,chrome for android39支持
267 |
268 | 269 |
270 |
271 |
272 |

七、CSS3多列布局

273 |
1、column-count:分栏的个数
274 | 2、column-width:分栏的宽度
275 | 3、column-gap:分栏的间距
276 | 4、column-rule:分栏的边框
277 | 5、column-span:all/1合并分栏 火狐不支持
278 | 279 |
280 |
281 | 298 |
返回顶部
299 | 300 | 301 | -------------------------------------------------------------------------------- /CSS3当中的长度单位.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/CSS3当中的长度单位.png -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 网页自适应 4 | 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/4f5566c1f7bc28b3f7ac1fada8abe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/data/4f5566c1f7bc28b3f7ac1fada8abe.png -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/de1b2911072f5a4eff82abdb62632.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/data/de1b2911072f5a4eff82abdb62632.png -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/e447fa21190690b28f1957d5937f4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/data/e447fa21190690b28f1957d5937f4.png -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/fcb3879e14429d75833a461572e64.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/data/fcb3879e14429d75833a461572e64.jpg -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"} -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/ghost-url.min.js: -------------------------------------------------------------------------------- 1 | !function(){"use strict";function a(a){var b,c=[];if(!a)return"";for(b in a)a.hasOwnProperty(b)&&(a[b]||a[b]===!1)&&c.push(b+"="+encodeURIComponent(a[b]));return c.length?"?"+c.join("&"):""}var b,c,d,e,f="//www.ghostchina.com/ghost/api/v0.1/";d={api:function(){var d,e=Array.prototype.slice.call(arguments),g=f;return d=e.length&&"object"==typeof e[e.length-1]?e.pop():{},d.client_id=b,d.client_secret=c,e.length&&e.forEach(function(a){g+=a.replace(/^\/|\/$/g,"")+"/"}),g+a(d)}},e=function(a){b=a.clientId?a.clientId:"",c=a.clientSecret?a.clientSecret:"",f=a.url?a.url:f.match(/{\{api-url}}/)?"":f},"undefined"!=typeof window&&(window.ghost=window.ghost||{},window.ghost.url=d,window.ghost.init=e),"undefined"!=typeof module&&(module.exports={url:d,init:e})}(); -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/h.js: -------------------------------------------------------------------------------- 1 | (function(){var h={},mt={},c={id:"6338835ad35c6d950a554fdedb598e48",dm:["ghostchina.com"],js:"tongji.baidu.com/hm-web/js/",etrk:[],icon:'',ctrk:true,align:1,nv:-1,vdur:1800000,age:31536000000,rec:0,rp:[],trust:0,vcard:0,qiao:0,lxb:0,conv:0,med:0,cvcc:'',cvcf:[],apps:''};var r=void 0,s=!0,t=null,w=!1;mt.h={};mt.h.T=/msie (\d+\.\d+)/i.test(navigator.userAgent);mt.h.Da=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:r;mt.h.cookieEnabled=navigator.cookieEnabled;mt.h.javaEnabled=navigator.javaEnabled();mt.h.language=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage||"";mt.h.Ga=(window.screen.width||0)+"x"+(window.screen.height||0);mt.h.colorDepth=window.screen.colorDepth||0;mt.cookie={}; 2 | mt.cookie.set=function(a,b,e){var d;e.H&&(d=new Date,d.setTime(d.getTime()+e.H));document.cookie=a+"="+b+(e.domain?"; domain="+e.domain:"")+(e.path?"; path="+e.path:"")+(d?"; expires="+d.toGMTString():"")+(e.Ta?"; secure":"")};mt.cookie.get=function(a){return(a=RegExp("(^| )"+a+"=([^;]*)(;|$)").exec(document.cookie))?a[2]:t};mt.m={};mt.m.pa=function(a){return document.getElementById(a)};mt.m.qa=function(a){var b;for(b="A";(a=a.parentNode)&&1==a.nodeType;)if(a.tagName==b)return a;return t}; 3 | (mt.m.W=function(){function a(){if(!a.B){a.B=s;for(var b=0,g=d.length;ba?"0"+a:a}var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return function(d){switch(typeof d){case "undefined":return"undefined";case "number":return isFinite(d)?String(d):"null";case "string":return a(d);case "boolean":return String(d); 7 | default:if(d===t)return"null";if(d instanceof Array){var g=["["],e=d.length,n,f,k;for(f=0;f(new Date).getTime())return a.substring(b+1)}}else if(mt.localStorage.F())try{return mt.localStorage.f.load(document.location.hostname),mt.localStorage.f.getAttribute(a)}catch(d){}return t}; 12 | mt.localStorage.remove=function(a){if(window.localStorage)window.localStorage.removeItem(a);else if(mt.localStorage.F())try{mt.localStorage.f.load(document.location.hostname),mt.localStorage.f.removeAttribute(a),mt.localStorage.f.save(document.location.hostname)}catch(b){}};mt.sessionStorage={};mt.sessionStorage.set=function(a,b){if(window.sessionStorage)try{window.sessionStorage.setItem(a,b)}catch(e){}}; 13 | mt.sessionStorage.get=function(a){return window.sessionStorage?window.sessionStorage.getItem(a):t};mt.sessionStorage.remove=function(a){window.sessionStorage&&window.sessionStorage.removeItem(a)};mt.Y={};mt.Y.log=function(a,b){var e=new Image,d="mini_tangram_log_"+Math.floor(2147483648*Math.random()).toString(36);window[d]=e;e.onload=e.onerror=e.onabort=function(){e.onload=e.onerror=e.onabort=t;e=window[d]=t;b&&b(a)};e.src=a};mt.O={}; 14 | mt.O.wa=function(){var a="";if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];b&&b.description&&(a=b.description.replace(/^.*\s+(\S+)\s+\S+$/,"$1"))}else if(window.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))(a=b.GetVariable("$version"))&&(a=a.replace(/^.*\s+(\d+),(\d+).*$/,"$1.$2"))}catch(e){}return a}; 15 | mt.O.Ma=function(a,b,e,d,g){return''};mt.url={}; 16 | mt.url.i=function(a,b){var e=a.match(RegExp("(^|&|\\?|#)("+b+")=([^&#]*)(&|$|#)",""));return e?e[3]:t};mt.url.Oa=function(a){return(a=a.match(/^(https?:)\/\//))?a[1]:t};mt.url.ta=function(a){return(a=a.match(/^(https?:\/\/)?([^\/\?#]*)/))?a[2].replace(/.*@/,""):t};mt.url.R=function(a){return(a=mt.url.ta(a))?a.replace(/:\d+$/,""):a};mt.url.Na=function(a){return(a=a.match(/^(https?:\/\/)?[^\/]*(.*)/))?a[2].replace(/[\?#].*/,"").replace(/^$/,"/"):t}; 17 | h.s={Pa:"http://tongji.baidu.com/hm-web/welcome/ico",M:"hm.baidu.com/hm.gif",ca:"baidu.com",Aa:"hmmd",Ba:"hmpl",za:"hmkw",xa:"hmci",Ca:"hmsr",ya:"hmcu",o:0,k:Math.round(+new Date/1E3),protocol:"https:"===document.location.protocol?"https:":"http:",Ra:0,ha:6E5,ia:10,P:1024,ga:1,r:2147483647,Z:"cc cf ci ck cl cm cp cu cw ds ep et fl ja ln lo lt nv rnd si st su v cv lv api u tt".split(" ")}; 18 | (function(){var a={l:{},c:function(a,e){this.l[a]=this.l[a]||[];this.l[a].push(e)},w:function(a,e){this.l[a]=this.l[a]||[];for(var d=this.l[a].length,g=0;gd.P||(b+encodeURIComponent(g.join(",")+(g.length?",":"")).length+(d.r+"").length>d.P&&l.C(),g.push(a),(g.length>=d.ia||/t:a/.test(a))&&l.C())}}}, 21 | ra:function(b){if(0===d.ga){var f=b.target||b.srcElement,k=f.tagName.toLowerCase();if("embed"==k||"object"==k)return""}e.T?(f=Math.max(document.documentElement.scrollTop,document.body.scrollTop),k=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),k=b.clientX+k,f=b.clientY+f):(k=b.pageX,f=b.pageY);var m=window.innerWidth||document.documentElement.clientWidth||document.body.offsetWidth;switch(c.align){case 1:k-=m/2;break;case 2:k-=m}k="{x:"+k+",y:"+f+",";f=b.target||b.srcElement; 22 | return k=(b="a"==f.tagName.toLowerCase()?f:a.qa(f))?k+("t:a,u:"+encodeURIComponent(b.href)+"}"):k+"t:b}"},C:function(){0!==g.length&&(h.b.a.et=2,h.b.a.ep="["+g.join(",")+"]",h.b.g(),g=[])}};h.z.c("pv-b",l.$);return l})(); 23 | (function(){function a(){return function(){h.b.a.nv=0;h.b.a.st=4;h.b.a.et=3;h.b.a.ep=h.G.ua()+","+h.G.sa();h.b.g()}}function b(){clearTimeout(y);var a;x&&(a="visible"==document[x]);z&&(a=!document[z]);f="undefined"==typeof a?s:a;if((!n||!k)&&f&&m)u=s,p=+new Date;else if(n&&k&&(!f||!m))u=w,q+=+new Date-p;n=f;k=m;y=setTimeout(b,100)}function e(a){var k=document,p="";if(a in k)p=a;else for(var b=["webkit","ms","moz","o"],q=0;qa.length)){var d=a[1],e=a[4]||3;if(0d&&0e){f.D++;for(var p=(h.b.a.cv||"*").split("!"),q=p.length;q=encodeURIComponent(b).length&&(f.e|=64,h.b.a.rt=b))},_trackRTEvent:function(b){b=b[1];if(e.d(b,"Object")){a(b);b=encodeURIComponent(d.stringify(b));var m=function(a){var b=h.b.a.rt;f.e|=128;h.b.a.et=90;h.b.a.rt=a;h.b.g();h.b.a.rt=b},l=b.length;if(900>=l)m.call(this,b);else for(var l=Math.ceil(l/900),p="block|"+Math.round(Math.random()* 33 | g.r).toString(16)+"|"+l+"|",q=[],u=0;uc.vdur?1:4;var a= 36 | w;this.A(document.referrer)&&this.A(document.location.href)?a=s:(a=b.R(document.referrer),a=this.K(a||"",document.location.hostname));return a?m.k-m.o>c.vdur?1:4:3},getData:function(a){try{return l.get(a)||k.get(a)||f.get(a)}catch(b){}},setData:function(a,b,d){try{l.set(a,b,{domain:this.I(),path:this.Q(),H:d}),d?f.set(a,b,d):k.set(a,b)}catch(e){}},Fa:function(a){try{l.set(a,"",{domain:this.I(),path:this.Q(),H:-1}),k.remove(a),f.remove(a)}catch(b){}},Ja:function(){var a,b,d,e,f;m.o=this.getData("Hm_lpvt_"+ 37 | c.id)||0;13===m.o.length&&(m.o=Math.round(m.o/1E3));b=this.va();a=4!==b?1:0;if(d=this.getData("Hm_lvt_"+c.id)){e=d.split(",");for(f=e.length-1;0<=f;f--)13===e[f].length&&(e[f]=""+Math.round(e[f]/1E3));for(;2592E3e.length?2:3;for(1===a&&e.push(m.k);4=+new Date-e;);};if(c.med)l="/zoosnet",g="swt",n=/swt|zixun|call|chat|zoos|business|talk|kefu|openkf|online|\/LR\/Chatpre\.aspx/i,f={click:function(){for(var a=[],b=k(document.getElementsByTagName("a")),b=[].concat.apply(b,k(document.getElementsByTagName("area"))),b=[].concat.apply(b,k(document.getElementsByTagName("img"))),d,f,e=0,g=b.length;ex

",head.appendChild(div.childNodes[1])}return options&&$.extend(settings,options),this.each(function(){var selectors=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];settings.customSelector&&selectors.push(settings.customSelector);var $allVideos=$(this).find(selectors.join(","));$allVideos=$allVideos.not("object object"),$allVideos.each(function(){var $this=$(this);if(!("embed"===this.tagName.toLowerCase()&&$this.parent("object").length||$this.parent(".fluid-width-video-wrapper").length)){$this.css("height")||$this.css("width")||!isNaN($this.attr("height"))&&!isNaN($this.attr("width"))||($this.attr("height",9),$this.attr("width",16));var height="object"===this.tagName.toLowerCase()||$this.attr("height")&&!isNaN(parseInt($this.attr("height"),10))?parseInt($this.attr("height"),10):$this.height(),width=isNaN(parseInt($this.attr("width"),10))?$this.width():parseInt($this.attr("width"),10),aspectRatio=height/width;if(!$this.attr("id")){var videoID="fitvid"+Math.floor(999999*Math.random());$this.attr("id",videoID)}$this.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*aspectRatio+"%"),$this.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto); -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/jquery.magnific-popup.min.js: -------------------------------------------------------------------------------- 1 | /*! Magnific Popup - v1.0.0 - 2014-12-12 2 | * http://dimsemenov.com/plugins/magnific-popup/ 3 | * Copyright (c) 2014 Dmitry Semenov; */ 4 | (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)})(function(e){var t,n,i,o,r,a,s,l="Close",c="BeforeClose",d="AfterClose",u="BeforeAppend",p="MarkupParse",f="Open",m="Change",g="mfp",h="."+g,v="mfp-ready",C="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,I=e(window),x=function(e,n){t.ev.on(g+e+h,n)},k=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},T=function(n,i){t.ev.triggerHandler(g+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},E=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new w,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};w.prototype={constructor:w,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){i||(i=e(document.body));var r;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var s,l=n.items;for(r=0;l.length>r;r++)if(s=l[r],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=r;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;t.types=[],a="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=k("bg").on("click"+h,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+h,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(r=0;c.length>r;r++){var d=c[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(p,function(e,t,n,i){n.close_replaceWith=E(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(E())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+h,function(e){27===e.keyCode&&t.close()}),I.on("resize"+h,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=I.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(u)){var g=t._getScrollbarSize();g&&(m.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||i),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),o.on("focusin"+h,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(u),T(f),n},close:function(){t.isOpen&&(T(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(C),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(l);var n=C+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}o.off("keyup"+h+" focusin"+h),t.ev.off(h),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(d)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=t.st[i]?t.st[i].markup:!1;T("FirstMarkupParse",o),t.currTemplate[i]=o?e(o):!0}r&&r!==n.type&&t.container.removeClass("mfp-"+r+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,T(m,n),r=n.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(E()):t.content=e:t.content="",T(u),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;r.length>a;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,T("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(a>I.width())return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};T("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(y)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),T(p,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(h+"-"+o[0]);if(i.length>0){var r=o[1];"replaceWith"===r?i[0]!==n[0]&&i.replaceWith(n):"img"===r?i.is("img")?i.attr("src",n):i.replaceWith(''):i.attr(o[1],n)}}else t.find(h+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(t,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=b?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),b?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var P,O,z,M="inline",B=function(){z&&(O.after(z.addClass(P)).detach(),z=null)};e.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(M),x(l+"."+M,function(){B()})},getInline:function(n,i){if(B(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(O||(P=o.hiddenClass,O=k(P),P="mfp-"+P),z=r.after(O).detach().removeClass(P)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("
");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var F,H="ajax",L=function(){F&&i.removeClass(F)},A=function(){L(),t.req&&t.req.abort()};e.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){t.types.push(H),F=t.st.ajax.cursor,x(l+"."+H,A),x("BeforeChange."+H,A)},getAjax:function(n){F&&i.addClass(F),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};T("ParseAjax",a),t.appendContent(e(a.data),H),n.finished=!0,L(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),T("AjaxContentAdded")},error:function(){L(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var j,N=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),x(f+n,function(){"image"===t.currItem.type&&e.cursor&&i.addClass(e.cursor)}),x(l+n,function(){e.cursor&&i.removeClass(e.cursor),I.off("resize"+h)}),x("Resize"+n,t.resizeImage),t.isLowIE&&x("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,j&&clearInterval(j),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){j&&clearInterval(j),j=setInterval(function(){return i.naturalWidth>0?(t._onImageHasSize(e),void 0):(n>200&&clearInterval(j),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:N(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(j&&clearInterval(j),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var W,R=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};x("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return d(),void 0;r=s(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,T("ZoomAnimationEnded")},16)},a)},16)}}),x(c+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),x(l+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(b?i.innerHeight():i[0].offsetHeight)-a-r};return R()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var Z="iframe",q="//about:blank",D=function(e){if(t.currTemplate[Z]){var n=t.currTemplate[Z].find("iframe");n.length&&(e||(n[0].src=q),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(Z,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(Z),x("BeforeChange",function(e,t,n){t!==n&&(t===Z?D():n===Z&&D(!0))}),x(l+"."+Z,function(){D()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var K=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,n&&n.enabled?(a+=" mfp-gallery",x(f+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),o.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),x("UpdateStatus"+i,function(e,n){n.text&&(n.text=Y(n.text,t.currItem.index,t.items.length))}),x(p+i,function(e,i,o,r){var a=t.items.length;o.counter=a>1?Y(n.tCounter,r.index,a):""}),x("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(y),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(y),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(k("b",o[0],!1,!0),k("a",o[0],!1,!0),k("b",a[0],!1,!0),k("a",a[0],!1,!0)),t.container.append(o.add(a))}}),x(m+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),x(l+i,function(){o.off(i),t.wrap.off("click"+i),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0,t.index=K(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=K(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;(t.direction?o:i)>=e;e++)t._preloadItem(t.index+e);for(e=1;(t.direction?i:o)>=e;e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=K(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),T("LazyLoad",i),"image"===i.type&&(i.img=e('').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,T("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(x("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),x("ElementParse."+U,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){I.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,I.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&I.off("touchmove"+r+" touchend"+r)}}(),_()}); -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/magnific-popup.min.css: -------------------------------------------------------------------------------- 1 | .mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#ccc;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#ccc}.mfp-preloader a:hover{color:#fff}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#ccc;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3f3f3f}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3f3f3f}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#bdbdbd;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#f3f3f3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0} -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/main.js: -------------------------------------------------------------------------------- 1 | /*==================================================== 2 | TABLE OF CONTENT 3 | 1. function declearetion 4 | 2. Initialization 5 | ====================================================*/ 6 | 7 | /*=========================== 8 | 1. function declearetion 9 | ==========================*/ 10 | var themeApp = { 11 | featuredMedia: function(){ 12 | $(".post").each(function() { 13 | var thiseliment = $(this); 14 | var media_wrapper = $(this).find('featured'); 15 | var media_content_image = media_wrapper.find($('img')); 16 | var media_content_embeded = media_wrapper.find('iframe'); 17 | if (media_content_image.length > 0) { 18 | $(media_content_image).insertAfter(thiseliment.find('.post-head')).wrap(""); 19 | thiseliment.addClass('post-type-image'); 20 | media_wrapper.remove(); 21 | } 22 | else if (media_content_embeded.length > 0) { 23 | $(media_content_embeded).insertAfter(thiseliment.find('.post-head')).wrap(""); 24 | thiseliment.addClass('post-type-embeded'); 25 | } 26 | }); 27 | }, 28 | responsiveIframe: function() { 29 | $('.post').fitVids(); 30 | }, 31 | sidebarConfig:function() { 32 | if(sidebar_left == true) { 33 | $('.main-content').addClass('col-md-push-4'); 34 | $('.sidebar').addClass('col-md-pull-8'); 35 | } 36 | }, 37 | recentPost:function() { 38 | var feed_url = "/rss/"; 39 | var code = String(''); 40 | $.get(feed_url, function(data) { 41 | $(data).find('item').slice(0,recent_post_count).each(function(){ 42 | var full = $(this).find('description').text(); 43 | var content = $(this).contentSnippet; 44 | var link = $(this).find('link').text(); 45 | var title = $(this).find('title').text(); 46 | var published_date = $(this).find('pubDate').text(); 47 | function format_date (dt) { 48 | var d = new Date(dt); 49 | var month_name = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; 50 | var month = month_name[d.getMonth()]; 51 | var date = d.getDate(); 52 | var year = d.getFullYear(); 53 | var formatted_dt = month+' '+date+','+' '+year; 54 | return formatted_dt; 55 | } 56 | code += '
'; 57 | code += '' + title + '
' + format_date(published_date) + '
'; 58 | code += '
'; 59 | }) 60 | $(".recent-post").html(code); 61 | }); 62 | }, 63 | highlighter: function() { 64 | $('pre code').each(function(i, block) { 65 | hljs.highlightBlock(block); 66 | }); 67 | }, 68 | backToTop: function() { 69 | $(window).scroll(function(){ 70 | if ($(this).scrollTop() > 100) { 71 | $('#back-to-top').fadeIn(); 72 | } else { 73 | $('#back-to-top').fadeOut(); 74 | } 75 | }); 76 | $('#back-to-top').on('click', function(e){ 77 | e.preventDefault(); 78 | $('html, body').animate({scrollTop : 0},1000); 79 | return false; 80 | }); 81 | }, 82 | init: function() { 83 | themeApp.featuredMedia(); 84 | themeApp.responsiveIframe(); 85 | // themeApp.sidebarConfig(); 86 | // themeApp.recentPost(); 87 | themeApp.highlighter(); 88 | themeApp.backToTop(); 89 | } 90 | } 91 | 92 | /*=========================== 93 | 2. Initialization 94 | ==========================*/ 95 | $(document).ready(function(){ 96 | themeApp.init(); 97 | }); -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/monokai_sublime.min.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:0.5em;background:#23241f;-webkit-text-size-adjust:none}.hljs,.hljs-tag,.css .hljs-rule,.css .hljs-value,.aspectj .hljs-function,.css .hljs-function .hljs-preprocessor,.hljs-pragma{color:#f8f8f2}.hljs-strongemphasis,.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-blockquote,.hljs-horizontal_rule,.hljs-number,.hljs-regexp,.alias .hljs-keyword,.hljs-literal,.hljs-hexcolor{color:#ae81ff}.hljs-tag .hljs-value,.hljs-code,.hljs-title,.css .hljs-class,.hljs-class .hljs-title:last-child{color:#a6e22e}.hljs-link_url{font-size:80%}.hljs-strong,.hljs-strongemphasis{font-weight:bold}.hljs-emphasis,.hljs-strongemphasis,.hljs-class .hljs-title:last-child,.hljs-typename{font-style:italic}.hljs-keyword,.ruby .hljs-class .hljs-keyword:first-child,.ruby .hljs-function .hljs-keyword,.hljs-function,.hljs-change,.hljs-winutils,.hljs-flow,.nginx .hljs-title,.tex .hljs-special,.hljs-header,.hljs-attribute,.hljs-symbol,.hljs-symbol .hljs-string,.hljs-tag .hljs-title,.hljs-value,.alias .hljs-keyword:first-child,.css .hljs-tag,.css .unit,.css .hljs-important{color:#f92672}.hljs-function .hljs-keyword,.hljs-class .hljs-keyword:first-child,.hljs-aspect .hljs-keyword:first-child,.hljs-constant,.hljs-typename,.hljs-name,.css .hljs-attribute{color:#66d9ef}.hljs-variable,.hljs-params,.hljs-class .hljs-title,.hljs-aspect .hljs-title{color:#f8f8f2}.hljs-string,.css .hljs-id,.hljs-subst,.hljs-type,.ruby .hljs-class .hljs-parent,.hljs-built_in,.django .hljs-template_tag,.django .hljs-variable,.smalltalk .hljs-class,.django .hljs-filter .hljs-argument,.smalltalk .hljs-localvars,.smalltalk .hljs-array,.hljs-attr_selector,.hljs-pseudo,.hljs-addition,.hljs-stream,.hljs-envvar,.apache .hljs-tag,.apache .hljs-cbracket,.tex .hljs-command,.hljs-prompt,.hljs-link_label,.hljs-link_url{color:#e6db74}.hljs-comment,.hljs-javadoc,.hljs-annotation,.hljs-decorator,.hljs-pi,.hljs-doctype,.hljs-deletion,.hljs-shebang,.apache .hljs-sqbracket,.tex .hljs-formula{color:#75715e}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata,.xml .php,.php .xml{opacity:0.5} -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/screen.css: -------------------------------------------------------------------------------- 1 | /*==================================================== 2 | Importing bootstrap less files 3 | ====================================================*/ 4 | /*==================================================== 5 | COLOR VARIABLE FOR THEME 6 | ====================================================*/ 7 | /* common */ 8 | /*==================================================== 9 | common styles 10 | ====================================================*/ 11 | html, 12 | body { 13 | color: #505050; 14 | line-height: 1.75em; 15 | background: #ebebeb; 16 | position: relative; 17 | font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "WenQuanYi Micro Hei", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; 18 | } 19 | h1, 20 | h2, 21 | h3, 22 | h4, 23 | h5, 24 | h6 { 25 | font-weight: 400; 26 | color: #303030; 27 | } 28 | h1 { 29 | font-size: 3em; 30 | } 31 | h2 { 32 | font-size: 2.5em; 33 | } 34 | h3 { 35 | font-size: 2em; 36 | } 37 | h4 { 38 | font-size: 1.5em; 39 | } 40 | h5 { 41 | font-size: 1em; 42 | } 43 | h6 { 44 | font-size: 0.75em; 45 | } 46 | a { 47 | color: #e67e22; 48 | outline: none; 49 | } 50 | a:hover { 51 | color: #e67e22; 52 | } 53 | a:active, 54 | a:focus, 55 | a img { 56 | outline: none; 57 | } 58 | .btn { 59 | padding: 7px 14px; 60 | border-radius: 2px; 61 | } 62 | .btn-default { 63 | border: 1px solid #e67e22; 64 | background: #e67e22; 65 | color: #ffffff; 66 | -webkit-transition: all 0.2s ease-in-out; 67 | -o-transition: all 0.2s ease-in-out; 68 | transition: all 0.2s ease-in-out; 69 | } 70 | .btn-default:hover { 71 | border: 1px solid #303030; 72 | background: #303030; 73 | color: #ffffff; 74 | } 75 | .btn-default:focus { 76 | outline: none; 77 | } 78 | .btn-default[disabled] { 79 | border: 1px solid #303030; 80 | background: #303030; 81 | color: #ffffff; 82 | } 83 | input[type="search"], 84 | input[type="text"], 85 | input[type="url"], 86 | input[type="email"], 87 | textarea { 88 | padding: 7px 7px; 89 | border: 1px solid #ebebeb; 90 | border-radius: 2px; 91 | -webkit-transition: all 0.2s; 92 | -o-transition: all 0.2s; 93 | transition: all 0.2s; 94 | } 95 | input[type="search"]:focus, 96 | input[type="text"]:focus, 97 | input[type="url"]:focus, 98 | input[type="email"]:focus, 99 | textarea:focus { 100 | border: 1px solid #e67e22; 101 | outline: none; 102 | } 103 | blockquote { 104 | border-left: 4px solid #e67e22; 105 | } 106 | pre { 107 | padding: 0; 108 | background: none; 109 | border: none; 110 | } 111 | ::-moz-selection { 112 | color: #ffffff; 113 | background: #e67e22; 114 | text-shadow: none; 115 | } 116 | ::selection { 117 | color: #ffffff; 118 | background: #e67e22; 119 | text-shadow: none; 120 | } 121 | /* header */ 122 | /*==================================================== 123 | header 124 | ====================================================*/ 125 | .main-header { 126 | text-align: center; 127 | padding: 42px 0; 128 | background: #ffffff; 129 | } 130 | .main-header .branding { 131 | font-size: 3.5em; 132 | color: #303030; 133 | } 134 | .main-header .branding:hover { 135 | text-decoration: none; 136 | } 137 | .main-header .branding img { 138 | max-width: 100%; 139 | } 140 | .home-template .main-header { 141 | padding-top: 62px; 142 | padding-bottom: 62px; 143 | background-repeat: no-repeat; 144 | background-position: center 20%; 145 | -webkit-background-size: cover; 146 | background-size: cover; 147 | } 148 | /* main-navigation */ 149 | .main-navigation { 150 | text-align: center; 151 | background: #ffffff; 152 | border-top: 1px solid #ebebeb; 153 | margin-bottom: 35px; 154 | border-bottom: 2px solid #e1e1e1; 155 | } 156 | .main-navigation .menu { 157 | padding: 0; 158 | margin: 0; 159 | } 160 | .main-navigation .menu li { 161 | list-style: none; 162 | display: inline-block; 163 | position: relative; 164 | } 165 | .main-navigation .menu li.nav-current { 166 | border-bottom: 2px solid #e67e22; 167 | margin-bottom: -2px; 168 | } 169 | .main-navigation .menu li a { 170 | color: #505050; 171 | line-height: 4em; 172 | display: block; 173 | padding: 0 21px; 174 | } 175 | .main-navigation .menu li:hover > a { 176 | color: #e67e22; 177 | text-decoration: none; 178 | } 179 | .main-navigation .menu li ul { 180 | visibility: hidden; 181 | background: #ffffff; 182 | text-align: left; 183 | padding: 7px 0px; 184 | margin: 0; 185 | position: absolute; 186 | left: 0; 187 | top: 120%; 188 | width: 200px; 189 | z-index: 999; 190 | opacity: 0; 191 | filter: alpha(opacity=0); 192 | -webkit-transition: all 0.2s ease; 193 | -o-transition: all 0.2s ease; 194 | transition: all 0.2s ease; 195 | } 196 | .main-navigation .menu li ul li { 197 | display: block; 198 | margin: 0; 199 | } 200 | .main-navigation .menu li ul li a { 201 | line-height: 2.5em; 202 | color: #505050; 203 | } 204 | .main-navigation .menu li ul:hover > a { 205 | color: #e67e22; 206 | } 207 | .main-navigation .menu li:hover ul { 208 | visibility: visible; 209 | opacity: 1; 210 | filter: alpha(opacity=100); 211 | top: 100%; 212 | } 213 | @media (max-width: 767px) { 214 | .main-navigation { 215 | text-align: left; 216 | } 217 | .main-navigation .menu li { 218 | display: block; 219 | } 220 | .main-navigation .menu li:hover > a { 221 | color: #e67e22; 222 | text-decoration: none; 223 | } 224 | .main-navigation .menu li ul { 225 | visibility: visible; 226 | padding: 0px 0px 0px 20px; 227 | margin: 0; 228 | position: relative; 229 | top: 0; 230 | width: 100%; 231 | opacity: 1; 232 | filter: alpha(opacity=100); 233 | } 234 | } 235 | /* navbar */ 236 | .navbar-header { 237 | text-align: center; 238 | } 239 | .navbar-header i { 240 | height: 56px; 241 | line-height: 56px; 242 | font-size: 2em; 243 | cursor: pointer; 244 | } 245 | @media (min-width: 768px) { 246 | .nav-toggle-button { 247 | display: none; 248 | } 249 | } 250 | /* post */ 251 | /*==================================================== 252 | main post area 253 | ====================================================*/ 254 | .post { 255 | padding: 35px; 256 | background: #ffffff; 257 | margin-bottom: 35px; 258 | position: relative; 259 | overflow: hidden; 260 | } 261 | .post .featured { 262 | position: absolute; 263 | background: #e67e22; 264 | color: #ffffff; 265 | text-align: center; 266 | top: -12px; 267 | right: -32px; 268 | width: 80px; 269 | height: 40px; 270 | line-height: 54px; 271 | -webkit-transform: rotate(45deg); 272 | -ms-transform: rotate(45deg); 273 | -o-transform: rotate(45deg); 274 | transform: rotate(45deg); 275 | } 276 | .post .featured i { 277 | -webkit-transform: rotate(-45deg); 278 | -ms-transform: rotate(-45deg); 279 | -o-transform: rotate(-45deg); 280 | transform: rotate(-45deg); 281 | } 282 | .post .post-head { 283 | text-align: center; 284 | } 285 | .post .post-head .post-title { 286 | margin: 0; 287 | font-size: 2.5em; 288 | line-height: 1em; 289 | } 290 | .post .post-head .post-title a { 291 | color: #303030; 292 | } 293 | .post .post-head .post-title a:hover, 294 | .post .post-head .post-title a:focus { 295 | text-decoration: none; 296 | } 297 | .post .post-head .post-meta { 298 | color: #959595; 299 | margin: 14px 0 0px; 300 | } 301 | .post .post-head .post-meta span { 302 | margin: 0px 7px; 303 | white-space: nowrap; 304 | } 305 | .post .featured-media { 306 | margin-top: 30px; 307 | overflow: hidden; 308 | } 309 | .post .featured-media img { 310 | width: 100%; 311 | } 312 | .post .post-content { 313 | margin: 30px 0; 314 | } 315 | .post .post-footer { 316 | margin-top: 30px; 317 | border-top: 1px solid #ebebeb; 318 | padding: 21px 0 0; 319 | } 320 | .post .post-footer .tag-list { 321 | color: #959595; 322 | line-height: 28px; 323 | } 324 | .post .post-footer .tag-list a { 325 | color: #959595; 326 | margin-left: 7px; 327 | } 328 | .post .post-footer .tag-list a:hover { 329 | color: #e67e22; 330 | } 331 | /* post content */ 332 | /*==================================================== 333 | main post content 334 | ====================================================*/ 335 | .post-content { 336 | font: 400 18px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", sans-serif; 337 | color: #444443; 338 | } 339 | .post-content h1, 340 | .post-content h2, 341 | .post-content h3, 342 | .post-content h4, 343 | .post-content h5, 344 | .post-content h6 { 345 | font-family: "Georgia", "Xin Gothic", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei", "SimSun", sans-serif; 346 | color: #222223; 347 | } 348 | .post-content h1 { 349 | font-size: 1.8em; 350 | margin: 0.67em 0; 351 | } 352 | .post-content > h1 { 353 | margin-top: 0; 354 | font-size: 2em; 355 | } 356 | .post-content h2 { 357 | font-size: 1.5em; 358 | margin: 0.83em 0; 359 | } 360 | .post-content h3 { 361 | font-size: 1.17em; 362 | margin: 1em 0; 363 | } 364 | .post-content h4, 365 | .post-content h5, 366 | .post-content h6 { 367 | font-size: 1em; 368 | margin: 1.6em 0 1em 0; 369 | } 370 | .post-content h6 { 371 | font-weight: 500; 372 | } 373 | .post-content p { 374 | margin-top: 0; 375 | margin-bottom: 1.46em; 376 | } 377 | .post-content a { 378 | word-wrap: break-word; 379 | -moz-text-decoration-color: rgba(0, 0, 0, 0.4); 380 | text-decoration-color: rgba(0, 0, 0, 0.4); 381 | } 382 | .post-content a:hover { 383 | -moz-text-decoration-color: rgba(0, 0, 0, 0.6); 384 | text-decoration-color: rgba(0, 0, 0, 0.6); 385 | } 386 | .post-content a img { 387 | /* Remove border on IE */ 388 | border: none; 389 | } 390 | .post-content strong, 391 | .post-content b { 392 | font-weight: 700; 393 | color: #222223; 394 | } 395 | .post-content em, 396 | .post-content i { 397 | font-style: italic; 398 | color: #222223; 399 | } 400 | .post-content img { 401 | max-width: 100%; 402 | height: auto; 403 | margin: 0.2em 0; 404 | } 405 | .post-content figure { 406 | position: relative; 407 | clear: both; 408 | outline: 0; 409 | margin: 10px 0 30px; 410 | padding: 0; 411 | min-height: 100px; 412 | } 413 | .post-content figure img { 414 | display: block; 415 | max-width: 100%; 416 | margin: auto auto 4px; 417 | -moz-box-sizing: border-box; 418 | -webkit-box-sizing: border-box; 419 | box-sizing: border-box; 420 | } 421 | .post-content figure figcaption { 422 | position: relative; 423 | width: 100%; 424 | text-align: center; 425 | left: 0; 426 | margin-top: 10px; 427 | font-weight: 400; 428 | font-size: 14px; 429 | color: #666665; 430 | } 431 | .post-content figure figcaption a { 432 | text-decoration: none; 433 | color: #666665; 434 | } 435 | .post-content hr { 436 | display: block; 437 | width: 50%; 438 | height: 1px; 439 | border: 0 none; 440 | border-top: #dededc 1px solid; 441 | margin: 3.2em auto; 442 | padding: 0; 443 | } 444 | .post-content blockquote { 445 | margin: 0 0 1.64em 0; 446 | border-left: 3px solid #e67e22; 447 | padding-left: 12px; 448 | color: #666664; 449 | } 450 | .post-content blockquote a { 451 | color: #666664; 452 | } 453 | .post-content ul, 454 | .post-content ol { 455 | margin: 0 0 24px 6px; 456 | padding-left: 16px; 457 | } 458 | .post-content ul { 459 | list-style-type: square; 460 | } 461 | .post-content ol { 462 | list-style-type: decimal; 463 | } 464 | .post-content li { 465 | margin-bottom: 0.2em; 466 | } 467 | .post-content li ul, 468 | .post-content li ol { 469 | margin-top: 0; 470 | margin-bottom: 0; 471 | margin-left: 14px; 472 | } 473 | .post-content li ul { 474 | list-style-type: disc; 475 | } 476 | .post-content li ul ul { 477 | list-style-type: circle; 478 | } 479 | .post-content li p { 480 | margin: 0.4em 0 0.6em; 481 | } 482 | .post-content .unstyled { 483 | list-style-type: none; 484 | margin: 0; 485 | padding: 0; 486 | } 487 | .post-content code, 488 | .post-content tt { 489 | color: #808080; 490 | font-size: 0.96em; 491 | background-color: #f9f9f7; 492 | padding: 1px 2px; 493 | border: 1px solid #dadada; 494 | border-radius: 3px; 495 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace; 496 | word-wrap: break-word; 497 | } 498 | .post-content pre { 499 | margin: 1.64em 0; 500 | padding: 7px; 501 | border: none; 502 | border-left: 3px solid #dadada; 503 | padding-left: 10px; 504 | overflow: auto; 505 | line-height: 1.5; 506 | font-size: 0.96em; 507 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace; 508 | color: #4c4c4c; 509 | background-color: #f9f9f7; 510 | } 511 | .post-content pre code, 512 | .post-content pre tt { 513 | color: #4c4c4c; 514 | border: none; 515 | background: none; 516 | padding: 0; 517 | } 518 | .post-content table { 519 | width: 100%; 520 | max-width: 100%; 521 | border-collapse: collapse; 522 | border-spacing: 0; 523 | margin-bottom: 1.5em; 524 | font-size: 0.96em; 525 | -moz-box-sizing: border-box; 526 | -webkit-box-sizing: border-box; 527 | box-sizing: border-box; 528 | } 529 | .post-content th, 530 | .post-content td { 531 | text-align: left; 532 | padding: 4px 8px 4px 10px; 533 | border: 1px solid #dadada; 534 | } 535 | .post-content td { 536 | vertical-align: top; 537 | } 538 | .post-content tr:nth-child(even) { 539 | background-color: #efefee; 540 | } 541 | .post-content iframe { 542 | display: block; 543 | max-width: 100%; 544 | margin-bottom: 30px; 545 | } 546 | .post-content figure iframe { 547 | margin: auto; 548 | } 549 | .post-content table pre { 550 | margin: 0; 551 | padding: 0; 552 | border: none; 553 | background: none; 554 | } 555 | @media (min-width: 1100px) { 556 | .post-content blockquote { 557 | margin-left: -24px; 558 | padding-left: 20px; 559 | border-width: 4px; 560 | } 561 | .post-content blockquote blockquote { 562 | margin-left: 0; 563 | } 564 | .post-content figure img { 565 | margin: 0 0 4px; 566 | } 567 | .post-content figure figcaption { 568 | position: absolute; 569 | left: -172px; 570 | width: 150px; 571 | top: 0; 572 | text-align: right; 573 | margin-top: 0; 574 | } 575 | .post-content figure figcaption:before { 576 | width: 25%; 577 | margin-left: 75%; 578 | border-top: 1px solid #dededc; 579 | display: block; 580 | content: ""; 581 | margin-bottom: 10px; 582 | } 583 | } 584 | .windows .post-content { 585 | font-size: 16px; 586 | font-family: "Georgia", "SimSun", sans-serif; 587 | } 588 | /* pagination */ 589 | /*==================================================== 590 | pagination 591 | ====================================================*/ 592 | .pagination { 593 | margin: 0 0 35px; 594 | text-align: center; 595 | display: block; 596 | } 597 | .pagination a { 598 | text-align: center; 599 | display: inline-block; 600 | color: #ffffff; 601 | background: #e67e22; 602 | border-radius: 2px; 603 | } 604 | .pagination a a:hover { 605 | background: #505050; 606 | text-decoration: none; 607 | color: #ffffff; 608 | } 609 | .pagination a i { 610 | width: 36px; 611 | height: 36px; 612 | line-height: 36px; 613 | } 614 | .pagination .page-number { 615 | background: #e67e22; 616 | color: #ffffff; 617 | margin: 0 3px; 618 | display: inline-block; 619 | line-height: 36px; 620 | padding: 0 14px; 621 | border-radius: 2px; 622 | } 623 | /* author */ 624 | /*==================================================== 625 | about author and comment 626 | ====================================================*/ 627 | .about-author { 628 | background: #ffffff; 629 | padding: 35px; 630 | margin-bottom: 35px; 631 | } 632 | .about-author .avatar { 633 | width: 100px; 634 | height: 100px; 635 | border-radius: 50%; 636 | } 637 | .about-author .details { 638 | margin-left: 114px; 639 | } 640 | .about-author .author { 641 | font-size: 1.5em; 642 | margin-bottom: 7px; 643 | } 644 | .about-author .author a:hover { 645 | text-decoration: none; 646 | } 647 | .about-author .meta-info { 648 | color: #959595; 649 | margin-bottom: 7px; 650 | } 651 | .about-author .meta-info span { 652 | margin-right: 14px; 653 | white-space: nowrap; 654 | } 655 | .about-author .meta-info span i { 656 | margin-right: 7px; 657 | } 658 | /* prev and next link */ 659 | .prev-next-wrap { 660 | margin-bottom: 35px; 661 | text-align: center; 662 | } 663 | @media (max-width: 767px) { 664 | .prev-next-wrap a { 665 | display: block; 666 | } 667 | } 668 | /* sidebar */ 669 | /*==================================================== 670 | sidebar 671 | ====================================================*/ 672 | .sidebar .widget { 673 | background: #ffffff; 674 | padding: 21px 30px; 675 | } 676 | .main-footer .widget { 677 | padding: 0px 30px; 678 | } 679 | .widget { 680 | margin-bottom: 35px; 681 | } 682 | .widget .title { 683 | margin-top: 0; 684 | padding-bottom: 7px; 685 | border-bottom: 1px solid #ebebeb; 686 | margin-bottom: 21px; 687 | position: relative; 688 | } 689 | .widget .title:after { 690 | content: ""; 691 | width: 90px; 692 | height: 1px; 693 | background: #e67e22; 694 | position: absolute; 695 | left: 0; 696 | bottom: -1px; 697 | } 698 | .widget .recent-post .recent-single-post { 699 | border-bottom: 1px dashed #ebebeb; 700 | padding-bottom: 14px; 701 | margin-bottom: 14px; 702 | } 703 | .widget .recent-post .recent-single-post:last-child { 704 | margin-bottom: 0; 705 | } 706 | .widget .recent-post .recent-single-post .post-title { 707 | color: #505050; 708 | -webkit-transition: all 0.2s ease; 709 | -o-transition: all 0.2s ease; 710 | transition: all 0.2s ease; 711 | } 712 | .widget .recent-post .recent-single-post .post-title:hover { 713 | color: #e67e22; 714 | text-decoration: none; 715 | } 716 | .widget .recent-post .recent-single-post .date { 717 | color: #959595; 718 | } 719 | .widget .tag-cloud a { 720 | border: 1px solid #ebebeb; 721 | padding: 2px 7px; 722 | color: #959595; 723 | line-height: 1.5em; 724 | display: inline-block; 725 | margin: 0 7px 7px 0; 726 | -webkit-transition: all 0.2s ease; 727 | -o-transition: all 0.2s ease; 728 | transition: all 0.2s ease; 729 | } 730 | .widget .tag-cloud a:hover { 731 | color: #ffffff; 732 | background: #e67e22; 733 | border: 1px solid #e67e22; 734 | text-decoration: none; 735 | } 736 | .widget .social { 737 | padding: 0; 738 | margin: 0; 739 | } 740 | .widget .social li { 741 | display: inline-block; 742 | margin: 0 2px 5px 0; 743 | text-align: center; 744 | } 745 | .widget .social li a i { 746 | width: 35px; 747 | height: 35px; 748 | line-height: 35px; 749 | border: 1px solid #ebebeb; 750 | color: #959595; 751 | -webkit-transition: all 0.2s; 752 | -o-transition: all 0.2s; 753 | transition: all 0.2s; 754 | } 755 | .widget .social li:hover i { 756 | color: #ffffff; 757 | background: #e67e22; 758 | border: 1px solid #e67e22; 759 | } 760 | .widget .newsletter .input-group { 761 | margin-bottom: 10px; 762 | display: block; 763 | } 764 | .widget .newsletter .input-group .email, 765 | .widget .newsletter .input-group btn { 766 | width: 100%; 767 | } 768 | .widget .ad { 769 | text-align: center; 770 | } 771 | .widget .ad img { 772 | max-width: 100%; 773 | } 774 | /* cover*/ 775 | /*==================================================== 776 | Tag page & author page cover 777 | ====================================================*/ 778 | .cover { 779 | text-align: center; 780 | background: #ffffff; 781 | padding: 35px; 782 | margin-bottom: 35px; 783 | } 784 | .cover .tag-name { 785 | margin-top: 0; 786 | } 787 | .cover .post-count { 788 | margin-top: 7px; 789 | color: #959595; 790 | } 791 | .cover .avatar { 792 | width: 100px; 793 | height: 100px; 794 | border-radius: 50%; 795 | } 796 | .cover .meta-info { 797 | color: #959595; 798 | } 799 | .cover .meta-info span { 800 | margin: 0 7px; 801 | } 802 | .cover .meta-info span i { 803 | margin-right: 7px; 804 | } 805 | .cover .bio { 806 | margin-top: 7px; 807 | } 808 | /* footer */ 809 | /*==================================================== 810 | footer 811 | ====================================================*/ 812 | .main-footer { 813 | background: #202020; 814 | padding: 35px 0 0; 815 | color: #959595; 816 | } 817 | .main-footer .widget .title { 818 | color: #ffffff; 819 | border-bottom: 1px solid #303030; 820 | } 821 | .main-footer .widget .tag-cloud a { 822 | border: 1px solid #303030; 823 | } 824 | .main-footer .widget .tag-cloud a:hover { 825 | border: 1px solid #e67e22; 826 | } 827 | .main-footer .widget .friend-links a { 828 | border: none; 829 | } 830 | .main-footer .widget .friend-links a:hover { 831 | border: none; 832 | } 833 | .main-footer .widget .friend-links hr { 834 | margin: 1em 0; 835 | border-top: 1px dashed #303030; 836 | } 837 | .main-footer .widget .recent-post .recent-single-post { 838 | border-bottom: 1px dashed #303030; 839 | } 840 | .main-footer .widget .recent-post .recent-single-post .post-title { 841 | color: #959595; 842 | } 843 | .main-footer .widget .recent-post .recent-single-post .post-title:hover { 844 | color: #e67e22; 845 | } 846 | .main-footer .widget .recent-post .recent-single-post .date { 847 | color: #505050; 848 | } 849 | .copyright { 850 | background: #111; 851 | font-size: 13px; 852 | text-align: center; 853 | color: #555555; 854 | padding-top: 28px; 855 | padding-bottom: 28px; 856 | border-top: 1px solid #303030; 857 | } 858 | .copyright span { 859 | margin: 0 .5em; 860 | } 861 | .copyright a { 862 | color: #555555; 863 | } 864 | #back-to-top { 865 | position: fixed; 866 | right: 10px; 867 | bottom: 10px; 868 | background: rgba(230, 126, 34, 0.6); 869 | color: #ffffff; 870 | text-align: center; 871 | border-radius: 2px; 872 | z-index: 1; 873 | display: none; 874 | } 875 | #back-to-top:hover { 876 | background: #e67e22; 877 | } 878 | #back-to-top i { 879 | width: 30px; 880 | height: 30px; 881 | line-height: 30px; 882 | } 883 | -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/share.js: -------------------------------------------------------------------------------- 1 | window._bd_share_main?window._bd_share_is_recently_loaded=!0:(window._bd_share_is_recently_loaded=!1,window._bd_share_main={version:"2.0",jscfg:{domain:{staticUrl:"http://bdimg.share.baidu.com/"}}}),!window._bd_share_is_recently_loaded&&(window._bd_share_main.F=window._bd_share_main.F||function(e,t){function r(e,t){if(e instanceof Array){for(var n=0,r=e.length;n1?(this.svnMod=n[0],this.name=n[1]):this.name=t}this.svnMod||(this.svnMod=this.path.split("/js/")[0].substr(1)),this.type="js",this.getKey=function(){return this.svnMod+":"+this.name},this._info={}}function o(e,t){var n=t=="css",r=document.createElement(n?"link":"script");return r}function u(t,n,r,i){function c(){c.isCalled||(c.isCalled=!0,clearTimeout(l),r&&r())}var s=o(t,n);s.nodeName==="SCRIPT"?a(s,c):f(s,c);var l=setTimeout(function(){throw new Error("load "+n+" timeout : "+t)},e._loadScriptTimeout||1e4),h=document.getElementsByTagName("head")[0];n=="css"?(s.rel="stylesheet",s.href=t,h.appendChild(s)):(s.type="text/javascript",s.src=t,h.insertBefore(s,h.firstChild))}function a(e,t){e.onload=e.onerror=e.onreadystatechange=function(){if(/loaded|complete|undefined/.test(e.readyState)){e.onload=e.onerror=e.onreadystatechange=null;if(e.parentNode){e.parentNode.removeChild(e);try{if(e.clearAttributes)e.clearAttributes();else for(var n in e)delete e[n]}catch(r){}}e=undefined,t&&t()}}}function f(e,t){e.attachEvent?e.attachEvent("onload",t):setTimeout(function(){l(e,t)},0)}function l(e,t){if(t&&t.isCalled)return;var n,r=navigator.userAgent,i=~r.indexOf("AppleWebKit"),s=~r.indexOf("Opera");if(i||s)e.sheet&&(n=!0);else if(e.sheet)try{e.sheet.cssRules&&(n=!0)}catch(o){if(o.name==="SecurityError"||o.name==="NS_ERROR_DOM_SECURITY_ERR")n=!0}setTimeout(function(){n?t&&t():l(e,t)},1)}var n="api";e.each=r,i.currentPath="",i.loadedPaths={},i.loadingPaths={},i.cache={},i.paths={},i.handlers=[],i.moduleFileMap={},i.requiredPaths={},i.lazyLoadPaths={},i.services={},i.isPathsLoaded=function(e){var t=!0;return r(e,function(e){if(!(e in i.loadedPaths))return t=!1}),t},i.require=function(e,t){e.search(":")<0&&(t||(t=n,i.currentPath&&(t=i.currentPath.split("/js/")[0].substr(1))),e=t+":"+e);var r=i.get(e,i.currentPath);if(r.type=="css")return;if(r){if(!r._inited){r._inited=!0;var s,o=r.svnMod;if(s=r.fn.call(null,function(e){return i.require(e,o)},r.exports,new h(r.name,o)))r.exports=s}return r.exports}throw new Error('Module "'+e+'" not found!')},i.baseUrl=t?t[t.length-1]=="/"?t:t+"/":"/",i.getBasePath=function(e){var t,n;return(n=e.indexOf("/"))!==-1&&(t=e.slice(0,n)),t&&t in i.paths?i.paths[t]:i.baseUrl},i.getJsPath=function(t,r){if(t.charAt(0)==="."){r=r.replace(/\/[^\/]+\/[^\/]+$/,""),t.search("./")===0&&(t=t.substr(2));var s=0;t=t.replace(/^(\.\.\/)+/g,function(e){return s=e.length/3,""});while(s>0)r=r.substr(0,r.lastIndexOf("/")),s--;return r+"/"+t+"/"+t.substr(t.lastIndexOf("/")+1)+".js"}var o,u,a,f,l,c;if(t.search(":")>=0){var h=t.split(":");o=h[0],t=h[1]}else r&&(o=r.split("/")[1]);o=o||n;var p=/\.css(?:\?|$)/i.test(t);p&&e._useConfig&&i.moduleFileMap[o][t]&&(t=i.moduleFileMap[o][t]);var t=l=t,d=i.getBasePath(t);return(a=t.indexOf("/"))!==-1&&(u=t.slice(0,a),f=t.lastIndexOf("/"),l=t.slice(f+1)),u&&u in i.paths&&(t=t.slice(a+1)),c=d+o+"/js/"+t+".js",c},i.get=function(e,t){var n=i.getJsPath(e,t);return i.cache[n]?i.cache[n]:new i(n,e)},i.prototype={load:function(){i.loadingPaths[this.path]=!0;var t=this.svnMod||n,r=window._bd_share_main.jscfg.domain.staticUrl+"static/"+t+"/",o=this,u=/\.css(?:\?|$)/i.test(this.name);this.type=u?"css":"js";var a="/"+this.type+"/"+i.moduleFileMap[t][this.name];e._useConfig&&i.moduleFileMap[t][this.name]?r+=this.type+"/"+i.moduleFileMap[t][this.name]:r+=this.type+"/"+this.name+(u?"":".js");if(e._firstScreenCSS.indexOf(this.name)>0||e._useConfig&&a==e._firstScreenJS)o._loaded=!0,o.ready();else{var f=(new Date).getTime();s.create({src:r,type:this.type,loaded:function(){o._info.loadedTime=(new Date).getTime()-f,o.type=="css"&&(o._loaded=!0,o.ready())}})}},lazyLoad:function(){var e=this.name;if(i.lazyLoadPaths[this.getKey()])this.define(),delete i.lazyLoadPaths[this.getKey()];else{if(this.exist())return;i.requiredPaths[this.getKey()]=!0,this.load()}},ready:function(e,t){var n=t?this._requiredStack:this._readyStack;if(e)this._loaded?e():n.push(e);else{i.loadedPaths[this.path]=!0,delete i.loadingPaths[this.path],this._loaded=!0,i.currentPath=this.path;if(this._readyStack&&this._readyStack.length>0){this._inited=!0;var s,o=this.svnMod;this.fn&&(s=this.fn.call(null,function(e){return i.require(e,o)},this.exports,new h(this.name,o)))&&(this.exports=s),r(this._readyStack,function(e){e()}),delete this._readyStack}this._requiredStack&&this._requiredStack.length>0&&(r(this._requiredStack,function(e){e()}),delete this._requiredStack)}},define:function(){var e=this,t=this.deps,n=this.path,s=[];t||(t=this.getDependents()),t.length?(r(t,function(t){s.push(i.getJsPath(t,e.path))}),r(t,function(t){var n=i.get(t,e.path);n.ready(function(){i.isPathsLoaded(s)&&e.ready()},!0),n.lazyLoad()})):this.ready()},exist:function(){var e=this.path;return e in i.loadedPaths||e in i.loadingPaths},getDependents:function(){var e=this,t=this.fn.toString(),n=t.match(/function\s*\(([^,]*),/i),i=new RegExp("[^.]\\b"+n[1]+"\\(\\s*('|\")([^()\"']*)('|\")\\s*\\)","g"),s=t.match(i),o=[];return s&&r(s,function(e,t){o[t]=e.substr(n[1].length+3).slice(0,-2)}),o}};var s={create:function(e){var t=e.src;if(t in this._paths)return;this._paths[t]=!0,r(this._rules,function(e){t=e.call(null,t)}),u(t,e.type,e.loaded)},_paths:{},_rules:[],addPathRule:function(e){this._rules.push(e)}};e.version="1.0",e.use=function(e,t){typeof e=="string"&&(e=[e]);var n=[],s=[];r(e,function(e,t){s[t]=!1}),r(e,function(e,o){var u=i.get(e),a=u._loaded;u.ready(function(){var e=u.exports||{};e._INFO=u._info,e._INFO&&(e._INFO.isNew=!a),n[o]=e,s[o]=!0;var i=!0;r(s,function(e){if(e===!1)return i=!1}),t&&i&&t.apply(null,n)}),u.lazyLoad()})},e.module=function(e,t,n){var r=i.get(e);r.fn=t,r.deps=n,i.requiredPaths[r.getKey()]?r.define():i.lazyLoadPaths[r.getKey()]=!0},e.pathRule=function(e){s.addPathRule(e)},e._addPath=function(e,t){t.slice(-1)!=="/"&&(t+="/");if(e in i.paths)throw new Error(e+" has already in Module.paths");i.paths[e]=t};var c=n;e._setMod=function(e){c=e||n},e._fileMap=function(t,n){if(typeof t=="object")r(t,function(t,n){e._fileMap(n,t)});else{var s=c;typeof n=="string"&&(n=[n]),t=t.indexOf("js/")==1?t.substr(4):t,t=t.indexOf("css/")==1?t.substr(5):t;var o=i.moduleFileMap[s];o||(o={}),r(n,function(e){o[e]||(o[e]=t)}),i.moduleFileMap[s]=o}},e._eventMap={},e.call=function(t,n,r){var i=[];for(var s=2,o=arguments.length;s=0;r--)t[r]=this.svnMod+":"+t[r];e.use(t,n)}},e._Context=h,e.addLog=function(t,n){e.use("lib/log",function(e){e.defaultLog(t,n)})},e.fire=function(t,n,r){e.use("lib/mod_evt",function(e){e.fire(t,n,r)})},e._defService=function(e,t){if(e){var n=i.services[e];n=n||{},r(t,function(e,t){n[t]=e}),i.services[e]=n}},e.getService=function(t,n,r){var s=i.services[t];if(!s)throw new Error(t+" mod didn't define any services");var o=s[n];if(!o)throw new Error(t+" mod didn't provide service "+n);e.use(t+":"+o,r)},e}({})),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("base/min_tangram",function(e,t){var n={};n.each=function(e,t,n){var r,i,s,o=e.length;if("function"==typeof t)for(s=0;s0?t.each(e[o],function(s,u){e[o][s]=t.extend({},r[o],n,u,i[o])}):e[o]=t.extend({},r[o],n,e[o],i[o]))}),e}var t=e.T;_bd_share_main.init=function(e){e=e||window._bd_share_config||{share:{}};if(e){var t=i(e);t.like&&r(["share/like_api","view/like_view"],t.like),t.share&&r(["share/share_api","view/share_view"],t.share),t.slide&&r(["share/slide_api","view/slide_view"],t.slide),t.selectShare&&r(["share/select_api","view/select_view"],t.selectShare),t.image&&r(["share/image_api","view/image_view"],t.image)}},window._bd_share_main._LogPoolV2=[],window._bd_share_main.n1=(new Date).getTime(),t.domready(function(){window._bd_share_main.n2=(new Date).getTime()+1e3,_bd_share_main.init(),setTimeout(function(){window._bd_share_main.F.use("trans/logger",function(e){e.nsClick(),e.back(),e.duration()})},3e3)})}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("component/comm_tools",function(e,t){var n=function(){var e=window.location||document.location||{};return e.href||""},r=function(e,t){var n=e.length,r="";for(var i=1;i<=t;i++){var s=Math.floor(n*Math.random());r+=e.charAt(s)}return r},i=function(){var e=(+(new Date)).toString(36),t=r("0123456789abcdefghijklmnopqrstuvwxyz",3);return e+t};t.getLinkId=i,t.getPageUrl=n}),!window._bd_share_is_recently_loaded&&window._bd_share_main.F.module("trans/trans",function(e,t){var n=e("component/comm_tools"),r=e("conf/const").URLS,i=function(){window._bd_share_main.F.use("base/tangram",function(e){var t=e.T;t.cookie.get("bdshare_firstime")==null&&t.cookie.set("bdshare_firstime",new Date*1,{path:"/",expires:(new Date).setFullYear(2022)-new Date})})},s=function(e){var t=e.bdUrl||n.getPageUrl();return t=t.replace(/\'/g,"%27").replace(/\"/g,"%22"),t},o=function(e){var t=(new Date).getTime()+3e3,r={click:1,url:s(e),uid:e.bdUid||"0",to:e.__cmd,type:"text",pic:e.bdPic||"",title:(e.bdText||document.title).substr(0,300),key:(e.bdSnsKey||{})[e.__cmd]||"",desc:e.bdDesc||"",comment:e.bdComment||"",relateUid:e.bdWbuid||"",searchPic:e.bdSearchPic||0,sign:e.bdSign||"on",l:window._bd_share_main.n1.toString(32)+window._bd_share_main.n2.toString(32)+t.toString(32),linkid:n.getLinkId(),firstime:a("bdshare_firstime")||""};switch(e.__cmd){case"copy":l(r);break;case"print":c();break;case"bdxc":h();break;case"bdysc":p(r);break;case"weixin":d(r);break;default:u(e,r)}window._bd_share_main.F.use("trans/logger",function(t){t.commit(e,r)})},u=function(e,t){var n=r.jumpUrl;e.__cmd=="mshare"?n=r.mshareUrl:e.__cmd=="mail"&&(n=r.emailUrl);var i=n+"?"+f(t);window.open(i)},a=function(e){if(e){var t=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),n=t.exec(document.cookie);if(n)return decodeURIComponent(n[2]||null)}},f=function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&").replace(/%20/g,"+")},l=function(e){window._bd_share_main.F.use("base/tangram",function(t){var r=t.T;r.browser.ie?(window.clipboardData.setData("text",document.title+" "+(e.bdUrl||n.getPageUrl())),alert("\u6807\u9898\u548c\u94fe\u63a5\u590d\u5236\u6210\u529f\uff0c\u60a8\u53ef\u4ee5\u63a8\u8350\u7ed9QQ/MSN\u4e0a\u7684\u597d\u53cb\u4e86\uff01")):window.prompt("\u60a8\u4f7f\u7528\u7684\u662f\u975eIE\u6838\u5fc3\u6d4f\u89c8\u5668\uff0c\u8bf7\u6309\u4e0b Ctrl+C \u590d\u5236\u4ee3\u7801\u5230\u526a\u8d34\u677f",document.title+" "+(e.bdUrl||n.getPageUrl()))})},c=function(){window.print()},h=function(){window._bd_share_main.F.use("trans/trans_bdxc",function(e){e&&e.run()})},p=function(e){window._bd_share_main.F.use("trans/trans_bdysc",function(t){t&&t.run(e)})},d=function(e){window._bd_share_main.F.use("trans/trans_weixin",function(t){t&&t.run(e)})},v=function(e){o(e)};t.run=v,i()}); -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/data/share_style0_24.css: -------------------------------------------------------------------------------- 1 | .bdshare-button-style0-24 .bds_qzone{background-position:0 -52px}.bdshare-button-style0-24 .bds_tsina{background-position:0 -104px}.bdshare-button-style0-24 .bds_renren{background-position:0 -208px}.bdshare-button-style0-24 .bds_tqq{background-position:0 -260px}.bdshare-button-style0-24 .bds_kaixin001{background-position:0 -312px}.bdshare-button-style0-24 .bds_tqf{background-position:0 -364px}.bdshare-button-style0-24 .bds_hi{background-position:0 -416px}.bdshare-button-style0-24 .bds_douban{background-position:0 -468px}.bdshare-button-style0-24 .bds_tieba{background-position:0 -728px}.bdshare-button-style0-24 .bds_hx{background-position:0 -988px}.bdshare-button-style0-24 .bds_fx{background-position:0 -1040px}.bdshare-button-style0-24 .bds_ty{background-position:0 -1196px}.bdshare-button-style0-24 .bds_fbook{background-position:0 -1352px}.bdshare-button-style0-24 .bds_twi{background-position:0 -1404px}.bdshare-button-style0-24 .bds_linkedin{background-position:0 -1664px}.bdshare-button-style0-24 .bds_meilishuo{background-position:0 -1716px}.bdshare-button-style0-24 .bds_mogujie{background-position:0 -1768px}.bdshare-button-style0-24 .bds_diandian{background-position:0 -1820px}.bdshare-button-style0-24 .bds_huaban{background-position:0 -1872px}.bdshare-button-style0-24 .bds_duitang{background-position:0 -2028px}.bdshare-button-style0-24 .bds_youdao{background-position:0 -2080px}.bdshare-button-style0-24 .bds_wealink{background-position:0 -2184px}.bdshare-button-style0-24 .bds_copy{background-position:0 -2288px}.bdshare-button-style0-24 .bds_mail{background-position:0 -2340px}.bdshare-button-style0-24 .bds_print{background-position:0 -2392px}.bdshare-button-style0-24 .bds_mshare{background-position:0 -2444px}.bdshare-button-style0-24 .bds_sqq{background-position:0 -2652px}.bdshare-button-style0-24 .bds_sdo{background-position:0 -2704px}.bdshare-button-style0-24 .bds_qingbiji{background-position:0 -2756px}.bdshare-button-style0-24 .bds_people{background-position:0 -2808px}.bdshare-button-style0-24 .bds_xinhua{background-position:0 -2912px}.bdshare-button-style0-24 .bds_yaolan{background-position:0 -2964px}.bdshare-button-style0-24 .bds_thx{background-position:0 -2496px}.bdshare-button-style0-24 .bds_bdhome{background-position:0 -156px}.bdshare-button-style0-24 .bds_bdxc{background-position:0 -2548px}.bdshare-button-style0-24 .bds_bdysc{background-position:0 -3068px}.bdshare-button-style0-24 .bds_isohu{background-position:0 -3016px}.bdshare-button-style0-24 .bds_more{background-position:0 0}.bdshare-button-style0-24 .bds_ibaidu{background-position:0 -3120px}.bdshare-button-style0-24 .bds_weixin{background-position:0 -1612px}.bdshare-button-style0-24 .bds_iguba{background-position:0 -1300px}.bdshare-button-style0-24 .bds_h163{background-position:0 -3168px}.bdshare-button-style0-24 .bds_evernotecn{background-position:0 -3228px}.bdshare-button-style0-24{zoom:1}.bdshare-button-style0-24:after{content:".";visibility:hidden;display:block;height:0;clear:both}.bdshare-button-style0-24 a,.bdshare-button-style0-24 .bds_more{float:left;font-size:18px;padding-left:25px;line-height:24px;height:24px;background-image:url(../img/share/icons_0_24.png?v=dcaa92d6.png);background-repeat:no-repeat;cursor:pointer;margin:6px 6px 6px 0}.bdshare-button-style0-24 a:hover{color:#333;opacity:.8;filter:alpha(opacity=80)}.bdshare-button-style0-24 .bds_more{color:#333;float:left}.bdshare-button-style0-24 .bds_count{color:#333;background:url(../img/share/sc.png?v=a970ff04.png) no-repeat 0 0;width:45px;height:24px;padding:0;text-align:center;margin:6px 6px 0 0}.bdshare-button-style0-24 .bds_count:hover{background-position:-44px 0}.bds_tsohu,.bds_tfh,.bds_baidu,.bds_qq,.bds_msn,.bds_sohu,.bds_qy,.bds_leho,.bds_ifeng,.bds_ff,.bds_tuita,.bds_ms,.bds_deli,.bds_s51,.bds_t163,.bds_share189,.bds_xg,.bds_s139{display:none} -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/Ghost开源博客页面自适应/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSS3弹性盒和媒体查询、响应式布局 2 | ``` 3 | 1、怪异盒模型的简介 4 | 5 | 2、弹性盒模型和相关概念 6 | 7 | 3、Flex容器属性(添加在父级元素上的) 8 | 9 | 4、Flex项目属性(添加在子元素上的) 10 | 11 | 5、媒体查询的概念和应用 12 | 13 | 6、Responsive web design 响应式设计布局概念 14 | 15 | 7、CSS3多列布局 16 | ``` 17 | ## 一、怪异盒模型的简介 18 | 19 | 20 | 21 | 22 | ## 二、弹性盒模型 23 | 24 | Flexbox布局(Flexible Box)模块(目前处于W3C工作草案)旨在提供一个更佳有效的布局方式,更好的控制项目的对齐和自由分配容器空间,即使它们的大小是未知的或动态的。因此得其名"flex"。
25 | Flex布局背后的主要思想`是给容器控制项目(Flex项目)的宽度、高度的能力,使用Flex项目可以自动填满容器的可用空间(主要是适应所有类型的显示设备和屏幕大小)。`Flex容器使用Flex项目可以自动放大与收缩,用来填补可用的空闲空间。
26 | ##### 注:Flexbox布局比较适合Web应用程序的一些小组件和小规模的布局,而Grid布局(网格单元格布局)更适合用于一些大规模的布局。 27 | `因为Flexbox是一个模块,而不是一个单一的属性,他涉及很多东西。其中有些概念是需要我们去理解的,比如“flex容器”-->一些属于容器上的属性(父元素);“flex项目”-->一些属于容器子元素上的属性;` 28 | 29 | ## 三、Flex容器属性(添加在父级元素上的) 30 | 31 | ### 1)display:定义一个Flex容器,根据其取的值来决定是内联还是块。Flex容器会为其内容建立新的伸缩格式化上下文。 32 | 两种方式 33 | ``` 34 | display : flex 35 | 36 | display : inline-flex 37 | 38 | 这样做将元素定义为弹性容器,其子元素即弹性子元素。 39 | 40 | flex 值表示弹性容器为块级。占用一行。 41 | 42 | inline-flex 值表示弹性容器为行内元素,可以多个元素并列在一行 。 43 | ``` 44 | 45 | ### 2)flex-direction:创建方轴,从而定义Flex项目在Flex容器中放置的方向。 46 | Flexbox是一种单方向的布局概念。认为Flex项目主要排列方式要么是水平排列,要么是垂直列排列 47 | 48 | ```Css 49 | .container { 50 | flex-direction: row | row-reverse | column | column-reverse; 51 | } 52 | ``` 53 | ### 3)flex-wrap:默认情况之下,Flex项目都尽可能在一行显示。你可以根据flex-wrap的属性值来改变,让Flex项目多行显示。方向在这也扮演了一个重要角度,决定新的一行堆放方向。 54 | ```Css 55 | .container { 56 | flex-wrap: nowrap | wrap | wrap-reverse; 57 | } 58 | ``` 59 | 60 | ### 4)flex-flow(适用于flex容器元素): 61 | 62 | 这是`flex-direction`和`flex-wrap`两个属性的缩写。两个属性决定了伸缩容器的主轴与侧轴。默认值是`row nowrap(中间用空格隔开)`。
63 | ###### 语法: 64 | ```Css 65 | flex-flow: <‘flex-direction’> || <‘flex-wrap’> 66 | ``` 67 | ### 5)justify-content:设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式 68 | ```Css 69 | justify-content:flex-start | flex-end | center | space-between | space-around 70 | ``` 71 | 当弹性盒里一行上的所有子元素都不能伸缩或已经达到其最大值时,这一属性可协助对多余的空间进行分配。当元素溢出某行时,这一属性同样会在对齐上进行控制 72 | 73 | 74 | 75 | 76 | ### 6)align-items:定义flex子项在flex容器的当前行的侧轴(纵轴)方向上的对齐方式。 77 | ```Css 78 | align-items: flex-start | flex-end | center | baseline(项目位于容器的基线上) | stretch(默认值。); 79 | ``` 80 | 伸缩项目可以在伸缩容器的当前行的侧轴上进行对齐,这类似于justify-content属性,但是是另一个方向。align-items可以用来设置伸缩容器中包括匿名伸缩项目的所有项目的对齐方式。 81 | 82 | 83 | ### 7)align-content: 84 | ```Css 85 | align-content:flex-start |flex-end|center|space-between|space-around | stretch 86 | ``` 87 | 当伸缩容器的侧轴还有多余空间时,align-content属性可以用来调准伸缩行在伸缩容器里的对齐方式,这与调准伸缩项目在主轴上对齐方式的justify-content属性类似。请注意本属性在只有一行的伸缩容器上没有效果。 88 | 89 | 90 | 91 | 92 | ## 四、Flex项目属性(添加在子元素上的) 93 | 94 | ### 1)order::用整数值来定义排列顺序,数值小的排在前面。可以为负值。 95 | 默认情况,Flex项目是按文档源的流顺序排列。然而,在Flex容器中可以通过order属性来控制Flex项目的顺序源。设置或检索弹性盒模型对象的子元素出現的順序。
96 | order定义将会影响 <' position '> 值为static元素的层叠级别,数值小的会被数值大的盖住。 97 | 98 | 99 | 100 | 101 | ### 2)flex-grow:number该属性控制flex容器是单行或者多行,同时横轴的方向决定了新行堆叠的方向。 102 | 该属性控制flex容器是单行或者多行,同时横轴的方向决定了新行堆叠的方向。如果所有Flex项目的flex-grow设置为1时,表示Flex容器中的Flex项目具有相等的尺寸。如果你给其中一个Flex项目设置flex-grow的值为2,那么这个Flex项目的尺寸将是其他Flex项目两倍(其他Flex项目的flex-grow值为1)。`注意:flex-grow取负值将失效。` 103 | 104 | 105 | ### 3)flex-shrink:设置或检索弹性盒的收缩比率 106 | 根据弹性盒子元素所设置的收缩因子作为比率来收缩空间。注意:flex-shrink取负值将失效。 107 | 108 | ### 4)flex-basis: | | auto | content 109 | `设置或检索弹性盒伸缩基准值`。如果所有子元素的基准值之和大于剩余空间,则会根据每项设置的基准值,按比率伸缩剩余空间。
110 | 如果设置为0,内容不在考虑周围额外空间。如果设置为auto,额外空间会基于flex-grow值做分布。如下图所示:
111 | 112 | 113 | ##5)flex:none | <' flex-grow '> <' flex-shrink >'? || <' flex-basis '> 114 | ##### 复合属性。设置或检索弹性盒模型对象的子元素如何分配空间。 115 | flex是flex-grow,flex-shrink和flex-basis三个属性的缩写。第二个和第三个参数(flex-shrink和flex-basis)是可选值。其默认值是0 1 auto。 116 | ``` 117 | 如果缩写「flex: 1」, 则其计算值为「1 1 0%」 118 | 119 | 如果缩写「flex: auto」, 则其计算值为「1 1 auto」 120 | 121 | 如果「flex: none」, 则其计算值为「0 0 auto」 122 | 123 | 如果「flex: 0 auto」或者「flex: initial」, 则其计算值为「0 1 auto」,即「flex」初始值 124 | 125 | ``` 126 | 127 | 128 | 129 | ### 6)align-self:auto | flex-start | flex-end | center | baseline | stretch 130 | 定义flex子项单独在侧轴(纵轴)方向上的对齐方式。 131 | ###### 注意:float,clear和vertical-align属性在Flex项目中无效。 132 | 133 | 134 | 135 | 136 | ## 五、媒体查询的概念和应用 137 | 138 | ### 1)媒体查询的引用方法 139 | 在实际中媒体类型有近10中之多,实际常用的也就那么几种。不同的媒体类型引用方法也是有很多的,常见的媒体类型的引用主要有:link标签、xml方式、@import和css3新增的@import几种。 140 | #### 1、 link方法: 141 | link方法引入类型其实就是在标签引入样式的时候,通过link标签中的media属性来制定不同的媒体类型,这种方式引入媒体类型时常跟着引用的样式文件走。如: 142 | ```Html 143 | 144 | 145 | ``` 146 | #### 2、 @media方式 147 | @media是css3中新引进的一个特性,被称为媒体查询。在页面中也可以通过这个属性来引入媒体查询,它和@import有点类似,也是具有2中方式 148 | 149 | A:在样式文件中引入媒体类型: 150 | ```Css 151 | @media screen{ 选择器{ 你的样式代码 } } 152 | ``` 153 | B:使用@media 引入媒体类型的方式是在head标签中的style引入 154 | ```Html 155 | 156 | 159 | 160 | ``` 161 | ### 2)常用Media query设备特性 162 | 163 | 164 | ## 六、Responsive web design 响应式设计布局概念 165 | 166 | ### 1)Responsive 设计特点 167 | Responsive 网页设计不但要考虑其元素布局的秩序,还要做到“有求必应”,因此需要满足三个条件。 168 | ``` 169 | 1、网站必须建立灵活的网格基础; 170 | 171 | 2、引用到网站的图片必须是可伸缩的; 172 | 173 | 3、不同的显示风格,需要在Media Query上设置不同的样式 174 | ``` 175 | ###### 注意:缺少任何一个功能,就不能称为是合格的Responsive 网页设计 176 | ### 2)Responsive 中的术语 177 | #### 1、流体网格 178 | 流体网格是一个简单的网格系统,这种网格设计参考了流体设计中的网格系统,将每个网格格子使用百分比单位 179 | 来控制网格大小,这种网格系统最大的好处就是让网格大小随时根据屏幕尺寸做出相对应的比例缩放。 180 | #### 2、弹性图片 181 | 弹性图片指的是不给图片设置固定尺寸,而是根据流体网格进行缩放,用于适应各种网格的尺寸。而实现方法是
182 | 比较简单,一条代码就能确定 比如img{max-width:100%;}但是在IE8浏览器会出现图片失踪的bug,如果
183 | 我们给每个断点提供不同的图片是比较头疼的一件事情,所以我们可以使用:
184 | ``` 185 | 1)、使用background-image给元素添加背景图片 186 | 187 | 2)、显示/隐藏父元素,给父元素使用不同的图片,然后通过media query来控制这些图片显示或者隐藏 188 | ``` 189 | #### 3、媒体查询 190 | 媒体查询可以根据设备的尺寸,查询出适配的样式,使用这个属性可以根据用户终端设备适配对 191 | 应的样式,Responsive 设计最关注的的是根据用户的使用设备的当前宽度,web页面将加载一个备用的样式, 192 | 实现特定的页面风格 193 | #### 4、屏幕分辨率 194 | 指的是用户使用的设备浏览web页面时的分辨率,比如智能手机浏览器,移动电脑浏览器,平板 195 | 电脑浏览器和桌面浏览器。只有知道有哪种分辨率,才能调用对应的样式。 196 | #### 5、主要断点: 197 | 简单来说就是设备宽度的临界点,媒体特性中min-width和max-width对应的属性值就是响应式 198 | 设计中的断点值,简单来说就是使用主要断点和次要断点,创建媒体查询的条件,而每个断点会对应一个样式文件。
199 | 设置断点要把握以下3个要点 200 | ``` 201 | 1)、满足主要的断点 202 | 203 | 2)、有可能的话添加一些别的断点 204 | 205 | 3)、设置高于1024px的桌面断点。 206 | ``` 207 | 208 | ### 3)Responsive 布局技巧 209 | ``` 210 | 1.尽量少用无关紧要的div 211 | 212 | 2.不要使用内联元素(inline) 213 | 214 | 3.尽量少用js或flash 215 | 216 | 4.丢去没用的绝对定位和浮动样式 217 | 218 | 5.屏弃任何冗余结构和不使用100%设置 219 | ``` 220 | 那么有哪些设置能帮助Responsive确定更好的布局呢? 221 | ``` 222 | 1.使用HTML5 Doctype和相关指南 223 | 224 | 2.重置好你的样式(reset.css) 225 | 226 | 3.一个简单的有语义的核心布局 227 | 228 | 4.给重要的网页元素使用简单的技巧,比如导航菜单之类元素 229 | ``` 230 | ### 4)Meta 标签定义 231 | 为了让智能手机根据媒体查询匹配对应的样式,特意添加了一个特殊的meta标签。主要作用就是让智能手机浏览网页时能进行优化,并且可以自定义可视区域的尺寸和缩放级别。
232 | 设置Meta标签 233 | ```Html 234 | 235 | ``` 236 | ###### 这段代码的几个参数解释: 237 | ``` 238 | width = device-width:宽度等于当前设备的宽度 239 | 240 | initial-scale: 初始的缩放比例(默认设置为1.0) 241 | 242 | minimum-scale:允许用户缩放到的最小比例(默认设置为1.0) 243 | 244 | maximum-scale:允许用户缩放到的最大比例(默认设置为1.0) 245 | 246 | user-scalable:用户是否可以手动缩放(默认设置为no,因为我们不希望用户放大缩小页面) 247 | ``` 248 | 249 | ## 常见的一些网页布局单位 250 | 251 | `px:绝对单位,页面按精确像素展示`
252 | 253 | `em:相对单位,基准点为父节点字体的大小,如果自身定义了font-size按自身来计算(浏览器默认字体是16px),整个页面内1em不是一个固定的值。`
254 | 255 | `rem:相对单位,可理解为”root em”, 相对根节点html的字体大小来计算,CSS3新加属性,chrome/firefox/IE9+支持。`
256 | 257 | `(另外需注意chrome强制最小字体为12号,即使设置成 10px 最终都会显示成 12px,当把html的font-size设置成10px,子节点rem的计算还是以12px为基准,所以网上很多文章提到的将html的font-size设为10方便计算不是那么可取)。`
258 | 259 | `rem在移动端应用可参考淘宝的页面http://m.taobao.com (html的font-size通过动态计算获取)`
260 | 261 | `vw:viewpoint width,视窗宽度,1vw等于视窗宽度的1%。`
262 | 263 | `vh:viewpoint height,视窗高度,1vh等于视窗高度的1%。`
264 | 265 | `vmin:vw和vh中较小的那个。`
266 | 267 | `vmax:vw和vh中较大的那个。`
268 | 269 | `vw, vh, vmin, vmax:IE9+局部支持,chrome/firefox/safari/opera支持,iOS safari 8+支持,Android browser4.4+支持,chrome for android39支持` 270 | 271 | ## 七、CSS3多列布局 272 | ``` 273 | 1、column-count:分栏的个数 274 | 275 | 2、column-width:分栏的宽度 276 | 277 | 3、column-gap:分栏的间距 278 | 279 | 4、column-rule:分栏的边框 280 | 281 | 5、column-span:all/1合并分栏 火狐不支持 282 | ``` 283 | -------------------------------------------------------------------------------- /images/234.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/234.png -------------------------------------------------------------------------------- /images/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/README.txt -------------------------------------------------------------------------------- /images/media.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/media.jpg -------------------------------------------------------------------------------- /images/pic1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic1.png -------------------------------------------------------------------------------- /images/pic10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic10.png -------------------------------------------------------------------------------- /images/pic11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic11.png -------------------------------------------------------------------------------- /images/pic12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic12.png -------------------------------------------------------------------------------- /images/pic13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic13.png -------------------------------------------------------------------------------- /images/pic14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic14.png -------------------------------------------------------------------------------- /images/pic15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic15.png -------------------------------------------------------------------------------- /images/pic16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic16.png -------------------------------------------------------------------------------- /images/pic17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic17.png -------------------------------------------------------------------------------- /images/pic18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic18.png -------------------------------------------------------------------------------- /images/pic19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic19.png -------------------------------------------------------------------------------- /images/pic2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic2.png -------------------------------------------------------------------------------- /images/pic20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic20.png -------------------------------------------------------------------------------- /images/pic3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic3.png -------------------------------------------------------------------------------- /images/pic4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic4.png -------------------------------------------------------------------------------- /images/pic5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic5.png -------------------------------------------------------------------------------- /images/pic6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic6.png -------------------------------------------------------------------------------- /images/pic7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic7.png -------------------------------------------------------------------------------- /images/pic8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic8.png -------------------------------------------------------------------------------- /images/pic9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/images/pic9.png -------------------------------------------------------------------------------- /jQuery/JQuery.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | JQuery 10 | 11 | 12 | 16 | 19 | 20 | 21 |
22 |
23 | 30 | 37 |
38 |
39 |
40 |
41 |

jQuery

42 | 45 |
46 |
47 |
48 |
49 | 71 |
72 | 110 | 111 |
112 |
113 |
114 |
115 |

What is jQuery?

116 |

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. 117 |

118 |
119 |
120 |

Corporate Members

121 |
    122 |
  • 123 | 124 |
  • 125 |
  • 126 | 127 |
  • 128 |
  • 129 | 130 |
  • 131 |
  • 132 | 133 |
  • 134 |
135 |

136 | Support from our corporate members makes it possible for the jQuery Foundation to continue our work on our JavaScript libraries and pushing the open web forward with events and participation in the standards process. View our members page for a full list of corporate and individual members. 137 |

138 |
139 |
140 |

Other jQuery Foundation Projects

141 |
    142 |
  • 143 | 144 |
  • 145 |
  • 146 | 147 |
  • 148 |
  • 149 | 150 |
  • 151 |
  • 152 | 153 |
  • 154 |
155 |
156 |
157 |
158 |
159 |
160 |

Resources

161 | 188 | 189 | 190 | 191 |
192 |
193 |
194 |
195 |

A Brief Look

196 |
197 |

DOM Traversal and Manipulation

198 |

Get the <button> element with the class 'continue' and change its HTML to 'Next Step...'

199 |
1$( "button.continue" ).html( "Next Step..." )
200 |
201 |
202 |

Event Handling

203 |

Show the #banner-message element that is hidden with display:none in its CSS when any button in #button-container is clicked.

204 |
1var hiddenBox = $( "button.continue" );
2$( "#button-container button" ).on( "click", function( event ) {
3  hiddenBox.show();
4});
205 |
206 |
207 |

Ajax

208 |

Call a local script on the server /api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp's html with the returned text.

209 |
1$.ajax({
2 url: "/api/getWeather",
3 data: {
4  zipcode: 97201
5 },
6success: function( data ) {
7  $( "#weather-temp" ).html( "<strong>" + data + "</strong> degrees" );
8 }
9});
210 |
211 |
212 |
213 |
214 |
215 | 309 | 310 | -------------------------------------------------------------------------------- /jQuery/css/jq.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /*MUX begin*/ 3 | /*reset begin*/ 4 | body{ 5 | margin: 0; 6 | font:15px/22.5px "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif; 7 | color: #333; 8 | } 9 | h1,h2,h3,h4,form,pre{margin: 0;} 10 | ul{ 11 | padding: 0; 12 | margin: 0; 13 | } 14 | li{list-style: none;} 15 | form,button,input{ 16 | padding: 0; 17 | margin: 0; 18 | border: none; 19 | background: none; 20 | } 21 | a:active,a:hover{outline:none;} 22 | a{ 23 | color: #B24926; 24 | cursor: pointer; 25 | text-decoration: underline; 26 | } 27 | a:hover{text-decoration: none;} 28 | strong{font-weight:normal;} 29 | em,i,cite{ font-style:normal;} 30 | img{ 31 | vertical-align:top; 32 | border:none; 33 | max-width: 100%; 34 | } 35 | /*reset end*/ 36 | 37 | /*base begin*/ 38 | .fl{float: left;} 39 | .fr{float: right;} 40 | .pr{position: relative;} 41 | .pa{position: absolute;} 42 | .db{display: block;} 43 | .di{display: inline;} 44 | .oh{overflow: hidden;} 45 | .fz20{font-size: 20px;} 46 | .mt15{margin-top: 15px;} 47 | .clear{zoom: 1;} 48 | .clear:after{ 49 | content:""; 50 | display:block; 51 | clear:both; 52 | } 53 | /*base end*/ 54 | 55 | /*sprite begin*/ 56 | .iconS{background: url(../img/sprite.png) no-repeat;} 57 | .hd-icoNav-linkJQ{background-position: 0 -50px;} 58 | .hd-icoNav-linkUI{background-position: -41px -50px;} 59 | .hd-icoNav-linkMo{background-position: -82px -50px;} 60 | .hd-icoNav-linkSi{background-position: -123px -50px;} 61 | .hd-icoNav-linkQu{background-position: -164px -50px;} 62 | .copyright-intro-icoIMt{background-position: 0 0;} 63 | .copyright-intro-icoIM{background-position: -30px 0;} 64 | .copyright-intro-icoIW{background-position: -60px 0;} 65 | .feature-linkLF{background-position: 0 -90px;} 66 | .feature-linkCC{background-position: -139px -90px;} 67 | .feature-linkCB{background-position: -278px -90px;} 68 | .content-bgicoUI-link{background-position: 0 -20px;} 69 | .content-bgicoMO-link{background-position: -122px -20px;} 70 | .content-bgicoQU-link{background-position: -244px -20px;} 71 | .content-bgicoSI-link{background-position: -366px -20px;} 72 | /*sprite end*/ 73 | 74 | /*fontface begin*/ 75 | @font-face{ 76 | font-family:"jq"; 77 | src:url(../font/iconfont.eot); 78 | src:url(../font/iconfont.eot?#iefix) format("embedded-opentype"), 79 | url(../font/iconfont.woff) format("woff"), 80 | url(../font/iconfont.ttf) format("truetype"), 81 | url(../font/iconfont.svg#jq) format("svg"); 82 | } 83 | .iconF{ 84 | font-family: "jq"; 85 | font-style: normal; 86 | font-weight: normal; 87 | } 88 | /*fontface end*/ 89 | /*MUX end*/ 90 | 91 | /*structure begin*/ 92 | .wrap{ 93 | max-width: 1200px; 94 | padding-left:20px; 95 | padding-right:20px; 96 | margin-left: auto; 97 | margin-right:auto; 98 | } 99 | /*header begin*/ 100 | .hdWrap{ 101 | background-color: #3f3f3f; 102 | border-bottom: 1px solid #7acef4; 103 | } 104 | .hd{ 105 | height:34px; 106 | padding-top: 1px; 107 | 108 | } 109 | .hd-icoNav{float: left;} 110 | .hd-nav-link{ 111 | float: left; 112 | border-right: 1px solid #1d1d1d; 113 | border-bottom: 1px solid #1d1d1d; 114 | box-shadow: 1px -1px 1px #555555; 115 | text-decoration: none; 116 | } 117 | .hd-icoNav-link{ 118 | width: 41px; 119 | height: 33px; 120 | } 121 | .hd-icoNav-link_active{ 122 | position: relative; 123 | top: 1px; 124 | left: 0; 125 | border: none; 126 | } 127 | .hd-textNav{ 128 | float: right; 129 | width: 450px; 130 | } 131 | .hd-textNav-link{ 132 | padding: 8px 12px; 133 | font:bold 13px/17px "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; 134 | color: #e6e6e6; 135 | } 136 | .hd-textNav-link:hover{background-color: #242424;} 137 | /*header end*/ 138 | 139 | /*logobar begin*/ 140 | .logobarWrap{background: #0669ad;} 141 | .logobar{ 142 | padding-top: 2%; 143 | padding-bottom: 2%; 144 | } 145 | .logo{ 146 | float: left; 147 | width: 243px; 148 | height: 66px; 149 | margin-top: 20px; 150 | overflow: hidden; 151 | } 152 | .logo-link{ 153 | float: left; 154 | width: 243px; 155 | height: 0; 156 | padding-top: 67px; 157 | overflow: hidden; 158 | background: url(../img/logo.png) no-repeat; 159 | } 160 | .introLogo{ 161 | float: right; 162 | display: block; 163 | width: 400px; 164 | } 165 | /*logobar end*/ 166 | 167 | /*contain begin*/ 168 | .containWrap{background: #0669ad;} 169 | 170 | /*navbar begin*/ 171 | .navbar{ 172 | padding: 0 20px; 173 | background-color: #04558c; 174 | border: 1px solid #053a64; 175 | border-bottom: none; 176 | border-radius: 10px 10px 0 0 ; 177 | box-shadow: 0 0 5px rgba(1,1,1,0.7),0 2px 2px #4781a9 inset; 178 | } 179 | .nav{ 180 | float: left; 181 | padding: 10px 0; 182 | width: 70%; 183 | } 184 | .navI{ 185 | float: left; 186 | padding-right: 2px; 187 | font-size: 16px; 188 | } 189 | .navSel{display: none;} 190 | .navI-link{ 191 | float: left; 192 | padding: 6px 10px; 193 | color: #fff; 194 | border: 1px solid #04558c; 195 | font-weight: bold; 196 | text-decoration: none; 197 | } 198 | .navI-link:hover{ 199 | border: 1px solid #083e6d; 200 | border-radius: 4px; 201 | box-shadow: 0 0 5px rgba(0,0,0,0.4) inset; 202 | } 203 | .searchbar{ 204 | float: right; 205 | margin-top: 16px; 206 | width: 29%; 207 | height: 24px; 208 | border-radius: 20px; 209 | _border: 1px solid gray; 210 | box-shadow: inset 0 0 5px rgba(0,0,0, 0.4), rgba(255,255,255,0.1) 0 1px 0; 211 | color: #fff; 212 | font-size: 12px; 213 | line-height: 14px; 214 | } 215 | .searchbar-search{ 216 | float: left; 217 | width: 80%; 218 | padding: 5px 10px; 219 | color: #fff; 220 | } 221 | .searchbar-search:focus{outline: none;} 222 | .searchbar-submit{ 223 | float: right; 224 | width: 10%; 225 | margin-top: 3px; 226 | padding: 3px 6px; 227 | border-left: 1px solid #04436f; 228 | color: white; 229 | opacity: 0.4; 230 | filter:alpha(opacity= 40); 231 | } 232 | /*navbar end*/ 233 | 234 | /*inner begin*/ 235 | .innerWrap{ 236 | background: #fff; 237 | border-radius: 0 0 10px 10px; 238 | position: relative; 239 | z-index: 2; 240 | } 241 | 242 | /*banner begin*/ 243 | .banner{ 244 | background-image: url(../img/banner.gif); 245 | padding: 20px; 246 | } 247 | .banner-downloadBox{ 248 | float: right; 249 | width: 30%; 250 | margin-bottom: 10px; 251 | } 252 | .downloadBox-link{ 253 | display: block; 254 | } 255 | .downloadBox-list{margin-top: 10px;} 256 | .downloadBox-listI-link{ 257 | color: #b3b3b3; 258 | text-decoration: underline; 259 | line-height: 1.5; 260 | } 261 | .downloadBox-listI-link:hover{text-decoration: none;} 262 | .banner-featureBox{ 263 | float: left; 264 | width: 60%; 265 | } 266 | .featureWrap{ 267 | float: left; 268 | width: 33.3%; 269 | } 270 | .feature{ 271 | padding: 0 10px; 272 | text-align: center; 273 | } 274 | .feature-link{ 275 | display: block; 276 | width: 120px; 277 | height: 107px; 278 | margin-left: auto; 279 | margin-right: auto; 280 | } 281 | .feature-linkCB{ 282 | -webkit-transition: 500ms transform; 283 | transition: 500ms transform; 284 | } 285 | .feature-linkCB:hover{ 286 | -webkit-transform: rotate(360deg); 287 | transform: rotate(360deg); 288 | } 289 | .feature-title{ 290 | margin-top: 20px; 291 | font-size: 20px; 292 | line-height: 24px; 293 | color: #7acef4; 294 | } 295 | .feature-desc{ 296 | margin-top: 20px; 297 | font-size: 12px; 298 | line-height: 14px; 299 | color: #ccc; 300 | } 301 | .feature-desc-link{ 302 | text-decoration: underline; 303 | color: #ccc; 304 | } 305 | .feature-desc-link:hover{text-decoration: none;} 306 | /*banner end*/ 307 | 308 | /*contentText begin*/ 309 | .contentText a:hover{color: #333;} 310 | .contentText-introWrap{ 311 | float: left; 312 | width: 66%; 313 | } 314 | .contentText-intro{ 315 | padding: 0 25px; 316 | } 317 | .content-title{ 318 | padding: 10px 2%; 319 | margin-bottom: 10px; 320 | background: #ececec; 321 | font-size: 24px; 322 | line-height: 30px; 323 | color: #333; 324 | } 325 | .content-icoBox{ 326 | margin-right: 20px; 327 | margin-bottom: 20px; 328 | font-size: 0; 329 | overflow: hidden; 330 | } 331 | .content-ico{ 332 | width: 25%; 333 | display: inline-block; 334 | *zoom: 1; 335 | *display: inline; 336 | vertical-align: middle; 337 | } 338 | .content-ico-link{ 339 | display: block; 340 | padding: 0 15px; 341 | height: 100%; 342 | } 343 | .content-bgico{ 344 | float: left; 345 | width: 49.9%; 346 | height: 45px; 347 | font-size: 0; 348 | overflow: hidden; 349 | text-align: center; 350 | } 351 | .content-bgicoUI{background-color: #B24926;} 352 | .content-bgicoMO{background-color: #108040;} 353 | .content-bgicoQU{background-color: #390F39;} 354 | .content-bgicoSI{background-color: #9A1B1E;} 355 | .content-bgico-link{ 356 | display: inline-block; 357 | width: 122px; 358 | height: 25px; 359 | margin-top: 10px; 360 | padding-bottom: 10px; 361 | } 362 | .contentText-resourceWrap{ 363 | float: right; 364 | width: 33%; 365 | } 366 | .contentText-resource{ 367 | padding-left: 60px; 368 | padding-right: 25px; 369 | } 370 | .content-Ltitle{ 371 | font-size: 20px; 372 | line-height: 24px; 373 | color: #666; 374 | margin-bottom: 10px; 375 | } 376 | .contentText-resource-textList{ 377 | margin-bottom: 20px; 378 | margin-left: 20px; 379 | } 380 | .contentText-resource-text{ 381 | position: relative; 382 | padding-left: 20px; 383 | line-height: 30px; 384 | } 385 | .contentText-resource-ico{ 386 | position: absolute; 387 | width: 8px; 388 | height: 8px; 389 | top: 12px; 390 | left: 0; 391 | overflow: hidden; 392 | border-radius: 4px; 393 | background: #cbcbcb; 394 | } 395 | /*contentText end*/ 396 | 397 | /*contentCode begin*/ 398 | .contentCode{padding: 0 25px 30px;} 399 | .code{ 400 | font-family: "source-code-pro", Consolas, monospace,Arial; 401 | font-size: 14px; 402 | line-height: 16px; 403 | background-color:#eee; 404 | } 405 | .contentCode-Lcode{ 406 | padding: 0 3px; 407 | border-radius: 3px; 408 | } 409 | .contentCode-code{ 410 | margin-top: 10px; 411 | padding: 10px 0; 412 | overflow: auto; 413 | border-radius: 5px; 414 | } 415 | .contentCode-num{ 416 | padding: 0 10px 0 20px; 417 | margin-right: 10px; 418 | border-right: 2px solid #999999; 419 | } 420 | .contentCode-number{color: #099;} 421 | .contentCode-keyword{font-weight: bold;} 422 | .contentCode-string{color: #d14;} 423 | /*contentCode end*/ 424 | /*inner end*/ 425 | /*contain end*/ 426 | 427 | /*footer begin*/ 428 | .footerWrap{ 429 | margin-top: -20px; 430 | padding-top: 20px; 431 | background-color: #212121; 432 | } 433 | .footer{ 434 | padding-top: 20px; 435 | text-align: center; 436 | } 437 | .ft-bookBox{ 438 | display: inline-block; 439 | width: 50%; 440 | } 441 | .bookBox-hd{ 442 | height: 10px; 443 | border: 1px solid #000; 444 | border-bottom: none; 445 | border-radius: 4px 4px 0 0; 446 | box-shadow: 0 1px 1px #333 inset; 447 | 448 | } 449 | .bookBox-title{ 450 | position: relative; 451 | top: -10px; 452 | left: 0; 453 | z-index: 1; 454 | display: inline-block; 455 | padding: 0 10px; 456 | font-size: 16px; 457 | color: #777; 458 | background-color: #212121 ; 459 | } 460 | .bookIWrap{ 461 | float: left; 462 | width: 33%; 463 | font-size: 12px; 464 | line-height: 18px; 465 | } 466 | .bookI{padding: 10px;} 467 | .bookI-link{ 468 | color: #fff; 469 | text-decoration: none; 470 | } 471 | .bookI-img{ 472 | padding-bottom: 10px; 473 | width: 92px; 474 | height: 114px; 475 | } 476 | .bookI-author{color: #aaa;} 477 | .copyrightbar{ 478 | padding-top: 10px; 479 | border-top: 1px solid #333; 480 | box-shadow: 0 -1px 0 #000; 481 | font-size: 12px; 482 | line-height: 16px; 483 | } 484 | .ftNav{ 485 | float: right; 486 | width: 59.9%; 487 | padding-bottom: 20px; 488 | } 489 | .ftNav-link{ 490 | float: right; 491 | margin-left: 10px; 492 | color: #aaa; 493 | text-decoration: none; 494 | } 495 | .ftNav-link:hover{color: #eaeaea;} 496 | .ftNav-link-ico{ 497 | padding-right: 5px; 498 | color: #4d4d4d; 499 | } 500 | .ftNav-link:hover .ftNav-link-ico{color: #eaeaea;} 501 | .copyright{ 502 | float: left; 503 | width: 38%; 504 | text-align: left; 505 | color: #777; 506 | } 507 | .copyright-link{ 508 | float: left; 509 | color: #aaa; 510 | text-decoration: none; 511 | } 512 | .copyright-link:hover{color: #eaeaea;} 513 | .copyright-intro{padding-top: 10px;} 514 | .copyright-introI{ 515 | float: left; 516 | padding: 0 2px 0 4px; 517 | border-right: 1px solid #777; 518 | line-height: 20px; 519 | height: 20px; 520 | white-space: nowrap; 521 | zoom: 1; 522 | } 523 | .copyright-introI:nth-last-of-type(1){border: none;} 524 | .copyright-introILast{*border: none;} 525 | .copyright-introI-ico{ 526 | float: left; 527 | width: 30px; 528 | height: 20px; 529 | } 530 | /*footer end*/ 531 | /*structure end*/ 532 | 533 | 534 | @media all and (max-width:767px ){ 535 | .banner-downloadBox, 536 | .banner-featureBox, 537 | .featureWrap, 538 | .downloadBox-link img, 539 | .contentText-introWrap, 540 | .contentText-resourceWrap, 541 | .content-bgico, 542 | .ftNav, 543 | .ftNav-link, 544 | .copyright, 545 | .copyright-ver.clear, 546 | .copyright-ver .fl, 547 | .copyright-link{ 548 | float: none; 549 | width: 100%; 550 | } 551 | .copyright-introI{ 552 | float: none; 553 | display: inline-block; 554 | } 555 | .copyright-ver, 556 | .copyright-intro{ 557 | text-align: center; 558 | } 559 | .content-ico{ 560 | display: block; 561 | width: 100%; 562 | text-align: center; 563 | } 564 | } 565 | @media all and (max-width:715px ){ 566 | .hd-icoNav{ 567 | display: none; 568 | } 569 | .hd-textNav{ 570 | float: left; 571 | } 572 | .logo, 573 | .logo-link, 574 | .introLogo, 575 | .nav, 576 | .searchbar, 577 | .navI, 578 | .bookIWrap{ 579 | float: none; 580 | } 581 | .logo, 582 | .introLogo, 583 | .nav, 584 | .searchbar, 585 | .bookIWrap{ 586 | width: 100%; 587 | text-align: center; 588 | } 589 | .navI{ 590 | font-size: 12px; 591 | } 592 | .navI-link, .navI-link:hover{ 593 | border: none; 594 | } 595 | .logo-link{ 596 | display: inline-block; 597 | } 598 | .searchbar{ 599 | margin-top: 0; 600 | margin-bottom: 10px; 601 | } 602 | .navbar{ 603 | background-color:transparent; 604 | border-radius:0; 605 | box-shadow:none; 606 | border: none; 607 | } 608 | .innerWrap{ 609 | border-radius: 10px; 610 | } 611 | .banner{ 612 | border-radius: 10px 10px 0 0; 613 | } 614 | } 615 | @media all and (max-width:600px ){} 616 | @media all and (max-width:479px ){ 617 | .nav{ 618 | display: none; 619 | } 620 | .navSel{ 621 | display: block; 622 | width: 100%; 623 | margin-bottom: 10px; 624 | } 625 | } 626 | -------------------------------------------------------------------------------- /jQuery/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/favicon.ico -------------------------------------------------------------------------------- /jQuery/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/font/iconfont.eot -------------------------------------------------------------------------------- /jQuery/font/iconfont.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Created by FontForge 20120731 at Wed May 13 13:29:58 2015 6 | By Ads 7 | 8 | 9 | 10 | 24 | 26 | 28 | 30 | 32 | 36 | 39 | 42 | 47 | 50 | 54 | 58 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /jQuery/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/font/iconfont.ttf -------------------------------------------------------------------------------- /jQuery/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/font/iconfont.woff -------------------------------------------------------------------------------- /jQuery/img/banner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/banner.gif -------------------------------------------------------------------------------- /jQuery/img/book/book1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/book/book1.jpg -------------------------------------------------------------------------------- /jQuery/img/book/book2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/book/book2.jpg -------------------------------------------------------------------------------- /jQuery/img/book/book3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/book/book3.jpg -------------------------------------------------------------------------------- /jQuery/img/contentText_resource_imglink.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/contentText_resource_imglink.jpg -------------------------------------------------------------------------------- /jQuery/img/content_ico/famous.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/content_ico/famous.gif -------------------------------------------------------------------------------- /jQuery/img/content_ico/ibm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/content_ico/ibm.gif -------------------------------------------------------------------------------- /jQuery/img/content_ico/maxcdn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/content_ico/maxcdn.gif -------------------------------------------------------------------------------- /jQuery/img/content_ico/neobux.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/content_ico/neobux.gif -------------------------------------------------------------------------------- /jQuery/img/downloadBox_link.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/downloadBox_link.gif -------------------------------------------------------------------------------- /jQuery/img/ico.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/ico.ico -------------------------------------------------------------------------------- /jQuery/img/introLogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/introLogo.jpg -------------------------------------------------------------------------------- /jQuery/img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/logo.gif -------------------------------------------------------------------------------- /jQuery/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/logo.png -------------------------------------------------------------------------------- /jQuery/img/sprite.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/sprite.gif -------------------------------------------------------------------------------- /jQuery/img/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/sprite.png -------------------------------------------------------------------------------- /jQuery/img/sprite.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/jQuery/img/sprite.psd -------------------------------------------------------------------------------- /jQuery/js/minmax.js: -------------------------------------------------------------------------------- 1 | 2 | /*@cc_on 3 | @if (@_win32 && @_jscript_version>4) 4 | 5 | var minmax_elements; 6 | 7 | minmax_props= new Array( 8 | new Array('min-width', 'minWidth'), 9 | new Array('max-width', 'maxWidth'), 10 | new Array('min-height','minHeight'), 11 | new Array('max-height','maxHeight') 12 | ); 13 | 14 | // Binding. Called on all new elements. If , initialise; check all 15 | // elements for minmax properties 16 | 17 | function minmax_bind(el) { 18 | var i, em, ms; 19 | var st= el.style, cs= el.currentStyle; 20 | 21 | if (minmax_elements==window.undefined) { 22 | // initialise when body element has turned up, but only on IE 23 | if (!document.body || !document.body.currentStyle) return; 24 | minmax_elements= new Array(); 25 | window.attachEvent('onresize', minmax_delayout); 26 | // make font size listener 27 | em= document.createElement('div'); 28 | em.setAttribute('id', 'minmax_em'); 29 | em.style.position= 'absolute'; em.style.visibility= 'hidden'; 30 | em.style.fontSize= 'xx-large'; em.style.height= '5em'; 31 | em.style.top='-5em'; em.style.left= '0'; 32 | if (em.style.setExpression) { 33 | em.style.setExpression('width', 'minmax_checkFont()'); 34 | document.body.insertBefore(em, document.body.firstChild); 35 | } 36 | } 37 | 38 | // transform hyphenated properties the browser has not caught to camelCase 39 | for (i= minmax_props.length; i-->0;) 40 | if (cs[minmax_props[i][0]]) 41 | st[minmax_props[i][1]]= cs[minmax_props[i][0]]; 42 | // add element with properties to list, store optimal size values 43 | for (i= minmax_props.length; i-->0;) { 44 | ms= cs[minmax_props[i][1]]; 45 | if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') { 46 | st.minmaxWidth= cs.width; st.minmaxHeight= cs.height; 47 | minmax_elements[minmax_elements.length]= el; 48 | // will need a layout later 49 | minmax_delayout(); 50 | break; 51 | } } 52 | } 53 | 54 | // check for font size changes 55 | 56 | var minmax_fontsize= 0; 57 | function minmax_checkFont() { 58 | var fs= document.getElementById('minmax_em').offsetHeight; 59 | if (minmax_fontsize!=fs && minmax_fontsize!=0) 60 | minmax_delayout(); 61 | minmax_fontsize= fs; 62 | return '5em'; 63 | } 64 | 65 | // Layout. Called after window and font size-change. Go through elements we 66 | // picked out earlier and set their size to the minimum, maximum and optimum, 67 | // choosing whichever is appropriate 68 | 69 | // Request re-layout at next available moment 70 | var minmax_delaying= false; 71 | function minmax_delayout() { 72 | if (minmax_delaying) return; 73 | minmax_delaying= true; 74 | window.setTimeout(minmax_layout, 0); 75 | } 76 | 77 | function minmax_stopdelaying() { 78 | minmax_delaying= false; 79 | } 80 | 81 | function minmax_layout() { 82 | window.setTimeout(minmax_stopdelaying, 100); 83 | var i, el, st, cs, optimal, inrange; 84 | for (i= minmax_elements.length; i-->0;) { 85 | el= minmax_elements[i]; st= el.style; cs= el.currentStyle; 86 | 87 | // horizontal size bounding 88 | st.width= st.minmaxWidth; optimal= el.offsetWidth; 89 | inrange= true; 90 | if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') { 91 | st.width= cs.minWidth; 92 | inrange= (el.offsetWidthoptimal); 97 | } 98 | if (inrange) st.width= st.minmaxWidth; 99 | 100 | // vertical size bounding 101 | st.height= st.minmaxHeight; optimal= el.offsetHeight; 102 | inrange= true; 103 | if (inrange && cs.minHeight && cs.minHeight!='0' && cs.minHeight!='auto' && cs.minHeight!='') { 104 | st.height= cs.minHeight; 105 | inrange= (el.offsetHeightoptimal); 110 | } 111 | if (inrange) st.height= st.minmaxHeight; 112 | } 113 | } 114 | 115 | // Scanning. Check document every so often until it has finished loading. Do 116 | // nothing until arrives, then call main init. Pass any new elements 117 | // found on each scan to be bound 118 | 119 | var minmax_SCANDELAY= 500; 120 | 121 | function minmax_scan() { 122 | var el; 123 | for (var i= 0; i #mq-test-1 { width: 42px; }',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h)return a.clearTimeout(i),i=a.setTimeout(v,q),void 0;h=p;for(var s in m)if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var C in o)o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C]);o.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b 2 | 3 | 响应式 4 | 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | 19 | 1502074537428 20 | 21 | 26 22 | 23 | org.eclipse.ui.ide.multiFilter 24 | 1.0-name-matches-false-false-node_modules 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /响应式/css/demo.css: -------------------------------------------------------------------------------- 1 | * { margin: 0; padding: 0; box-sizing: border-box;-webkit-box-sizing: border-box} 2 | li { list-style: none} 3 | img { vertical-align: top} 4 | a { cursor: pointer} 5 | /**/ 6 | header { height: 50px; position: fixed; top: 0; left: 0; 7 | width: 100%;background-color:#333; 8 | background-color:rgba(0,0,0,0.5) ; 9 | display: -webkit-box; 10 | display: -webkit-flex; 11 | display: flex; 12 | justify-content: space-between; 13 | line-height: 50px; 14 | color: #fff; 15 | } 16 | 17 | .menu { display: none; width: 100px; cursor: pointer; text-align: center} 18 | h1 { margin-left: 50px;overflow:hidden;flex-shrink: 0;width: 150px;} 19 | .logo { width: 100%; height: 50px; float:left; background: url("../images/logo.png") center no-repeat; 20 | font-size: 60px; line-height: 99999px; text-indent: 9999px; background-size: 100% auto } 21 | header nav { } 22 | header nav ul { display: flex; width:500px; justify-content: space-around;} 23 | header nav li { } 24 | .login { background-color: transparent; border: none; outline: none; color: #fff; 25 | cursor: pointer; width: 60px; flex-shrink: 0;} 26 | /**/ 27 | 28 | /*大广告*/ 29 | .banner { width: 100%; height: 250px; background: url("../images/top-bg.png") center top no-repeat #222; 30 | background-size: cover; } 31 | 32 | /*小广告*/ 33 | .wrap { padding: 10px; display: flex; justify-content: space-between;} 34 | .focus-pic { width:49%; } 35 | .wrap img { width: 100%; height: auto} 36 | .side-pic { width:49%; display: flex; justify-content: space-between;} 37 | .pic-item { width:49%;} 38 | 39 | /*商品*/ 40 | .product-list {display: flex; justify-content: space-around; flex-wrap: wrap} 41 | .product-list li { width: 23%; margin: 5px 0 10px; padding: 5px; box-shadow: 0 0 5px rgba(0,0,0,.7)} 42 | .product-list .pic { width: 100%} 43 | .product-list .pic img { width: 100%; height: auto;} 44 | .product-list p { line-height: 24px; font-size: 12px;} 45 | .product-list p:nth-of-type(2) { display: flex; justify-content: space-between; } 46 | 47 | 48 | @media screen and (max-width: 1024px){ 49 | .product-list li { width: 31%;} 50 | } 51 | 52 | 53 | @media screen and (max-width: 768px){ 54 | .product-list li { width: 45%;} 55 | 56 | .menu { display: block} 57 | h1 { margin-left: 0;overflow:hidden;} 58 | .logo {background-size: 80% auto } 59 | 60 | header nav { position: absolute; display: none; left: 0; top: 50px; width: 100%; 61 | background-color: rgba(0,0,0,.6) } 62 | header nav ul { display: block;width: 100%; text-align: center; } 63 | header nav li { border-top: 1px solid rgba(255,255,255,.3) } 64 | 65 | 66 | 67 | .wrap { padding: 10px; display: flex; justify-content: space-between; flex-wrap: wrap} 68 | .focus-pic { width:100%; } 69 | .side-pic { width:100%; margin-top: 10px;} 70 | 71 | } 72 | 73 | 74 | @media screen and (max-width:450px){ 75 | .product-list li { width: 90%;} 76 | .menu { display: block} 77 | 78 | h1 { margin-left: 0;overflow:hidden;} 79 | .logo {background-size: 80% auto } 80 | 81 | header nav { position: absolute; display: none; left: 0; top: 50px; width: 100%; background-color: rgba(0,0,0,.6) } 82 | header nav ul { display: block;width: 100%; text-align: center; } 83 | header nav li { border-top: 1px solid rgba(255,255,255,.3) } 84 | 85 | 86 | 87 | .wrap { padding: 10px; display: flex; justify-content: space-between; flex-wrap: wrap} 88 | .focus-pic { width:100%; } 89 | .side-pic { width:100%; margin-top: 10px;} 90 | 91 | } 92 | -------------------------------------------------------------------------------- /响应式/demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |

14 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 |
35 | 36 |
37 |
38 |
39 | 40 |
41 | 42 |
43 | 44 |
45 | 46 |
47 |
48 | 49 | 50 | 51 |
    52 |
  • 53 |
    54 |

    迷你微型摄影展

    55 |

    56 | 57 | 作者:tom 58 |

    59 |
  • 60 |
  • 61 |
    62 |

    迷你微型摄影展

    63 |

    64 | 65 | 作者:tom 66 |

    67 |
  • 68 |
  • 69 |
    70 |

    迷你微型摄影展

    71 |

    72 | 73 | 作者:tom 74 |

    75 |
  • 76 |
  • 77 |
    78 |

    迷你微型摄影展

    79 |

    80 | 81 | 作者:tom 82 |

    83 |
  • 84 |
  • 85 |
    86 |

    迷你微型摄影展

    87 |

    88 | 89 | 作者:tom 90 |

    91 |
  • 92 |
  • 93 |
    94 |

    迷你微型摄影展

    95 |

    96 | 97 | 作者:tom 98 |

    99 |
  • 100 |
  • 101 |
    102 |

    迷你微型摄影展

    103 |

    104 | 105 | 作者:tom 106 |

    107 |
  • 108 |
109 | 110 | 111 | 112 | 134 | 135 | -------------------------------------------------------------------------------- /响应式/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/1.jpg -------------------------------------------------------------------------------- /响应式/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/1.png -------------------------------------------------------------------------------- /响应式/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/2.jpg -------------------------------------------------------------------------------- /响应式/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/2.png -------------------------------------------------------------------------------- /响应式/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/3.jpg -------------------------------------------------------------------------------- /响应式/images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/4.jpg -------------------------------------------------------------------------------- /响应式/images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/5.jpg -------------------------------------------------------------------------------- /响应式/images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/6.jpg -------------------------------------------------------------------------------- /响应式/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/logo.png -------------------------------------------------------------------------------- /响应式/images/swiper1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/swiper1.jpeg -------------------------------------------------------------------------------- /响应式/images/top-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/响应式/images/top-bg.png -------------------------------------------------------------------------------- /多列布局.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 多列布局|column-span 6 | 49 | 50 | 51 |
52 |

金融时报:微软能否拯救Windows 8?

53 |

网易科技讯 5月8日消息,据国外媒体报道,Windows 8上市以来遭到业界与用户的各种诟病,销售量也不乐观。虽然微软已经意识到问题的严重性,但是鲍尔默能否力挽狂澜,还不得而知。今天金融时报撰文分析Windows 8与微软所遇到的困境,并展望了他们的未来,以下是文章主要内容:

54 |

微软能否拯救Windows 8?

55 |

这个问题关乎世界上最大的软件公司的未来以及其首席执行官史蒂夫·鲍尔默(Steve Ballmer)的职业生涯。微软为了保持其在PC领域的领先地位而推出的操作系统并没有得到用户的认可。

56 |

不过,看起来微软已经意识到问题的严重性。一个标志性动作就是,本周早些时候,微软宣布在今年年底之前发布Windows8的更新版本,代号为“Blue”。这是微软第一次打破了按年发布的传统,增加软件版本发布的频率,但跟竞争对手苹果和谷歌的软件更新发布频率还有不小差距。不过不管怎样这都说明微软已经开始采取行动,应对更激烈的竞争。

57 |

设计融合PC和平板电脑的Win8已经遭到了业界各种严厉的批评。纽约高科技研究公司Envisioneering的分析师Richard Doherty表示,“坐在Win8前面会让人感觉这操作系统蠢毙了,早期使用反馈研究表明人们广泛表示对win8不满。”Win8结合了传统PC界面和平板触摸屏界面的设计理念也遭人诟病,一些评论认为微软过于雄心勃勃,以至于在两款平台上都没有做好。

58 |

不过微软现在已经准备承认该软件确实给PC用户带来了不便:PC用户面对Win8时,需要经历一个十分陡峭的“学习曲线”。同时,微软也在做出改变,旨在提高Win8的可用性。虽然没有确凿证据,但微软受到了来自PC用户不小的压力。PC用户的希望是,当他们打开自己的PC时,是熟悉的Windows桌面,而不是被强制使用“丰富多彩”的微软瓷砖。同时,PC用户也一直希望微软把“开始”按钮弄回来。长期以来这一直是PC用户最熟悉的导航工具。

59 |

这些反馈表明,很多用户还没有准备好使用Windows的触摸屏操作系统,而是继续把Windows当作PC时代的产品。微软本周也承认Win8的成功将不仅仅需要用户界面的变化。Win8的另一个问题是价格。不过微软目前正在推动硬件厂商生产尺寸更小,成本更低的平板。这样的话,Win8平板的价格可能迅速下降到400美元左右,并向300美元看齐。

60 |

不过值得微软庆幸的是至少目前Win8没有遇到Vista的软件质量问题。许多企业用户因为Vista的各种弊病,直接跳过该版本,直接从早期的XP升级到Windows 7。约三分之二的企业用户目前已经升级到Windows 7。不过他们目前又开始了另一次观望,已决定是否要做新的升级。如果企业用户决定跳过Win8,那么微软将错过追赶苹果和谷歌的重要机会。

61 |
62 | 63 | -------------------------------------------------------------------------------- /拉钩/IMG_0038.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/拉钩/IMG_0038.PNG -------------------------------------------------------------------------------- /拉钩/IMG_0039.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/拉钩/IMG_0039.PNG -------------------------------------------------------------------------------- /拉钩/IMG_0040.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/拉钩/IMG_0040.PNG -------------------------------------------------------------------------------- /移动端布局的3种方法/0移动端基本概念.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/0移动端基本概念.jpg -------------------------------------------------------------------------------- /移动端布局的3种方法/1移动端基本概念.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/1移动端基本概念.jpg -------------------------------------------------------------------------------- /移动端布局的3种方法/QQ图片20170313224245.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/QQ图片20170313224245.png -------------------------------------------------------------------------------- /移动端布局的3种方法/lagou.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 24 | 25 | 26 |
拉勾网
27 | 28 | 29 | -------------------------------------------------------------------------------- /移动端布局的3种方法/rem-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/rem-11.png -------------------------------------------------------------------------------- /移动端布局的3种方法/taobao.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 30 | 31 | 32 |
淘宝网
33 | 加大了科技水电费 34 | 35 | 36 | -------------------------------------------------------------------------------- /移动端布局的3种方法/wangyi.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 30 | 31 | 32 |
网易网
33 | 加大了科技水电费 34 | 35 | 36 | -------------------------------------------------------------------------------- /移动端布局的3种方法/屏幕分辨率.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/屏幕分辨率.png -------------------------------------------------------------------------------- /移动端布局的3种方法/移动端布局.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PinBoLei/Elastic-box-and-mobile-terminal/6aa0f642da4fe76a3cf11b5b4a6cb229cfa830a4/移动端布局的3种方法/移动端布局.jpg --------------------------------------------------------------------------------