Skip to content

Commit 3938fe5

Browse files
committedJul 6, 2016
add files of task9
1 parent 77409c9 commit 3938fe5

File tree

5 files changed

+148
-0
lines changed

5 files changed

+148
-0
lines changed
 
File renamed without changes.
+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
*{margin: 0;padding: 0;list-style: none;}
2+
/*
3+
KISSY CSS Reset
4+
理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
5+
2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
6+
3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
7+
特色:1. 适应中文;2. 基于最新主流浏览器。
8+
维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
9+
*/
10+
11+
/** 清除内外边距 **/
12+
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
13+
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
14+
pre, /* text formatting elements 文本格式元素 */
15+
form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
16+
th, td /* table elements 表格元素 */ {
17+
margin: 0;
18+
padding: 0;
19+
}
20+
21+
/** 设置默认字体 **/
22+
body,
23+
button, input, select, textarea /* for ie */ {
24+
font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
25+
}
26+
h1, h2, h3, h4, h5, h6 { font-size: 100%; }
27+
address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
28+
code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
29+
small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
30+
31+
/** 重置列表元素 **/
32+
ul, ol { list-style: none; }
33+
34+
/** 重置文本格式元素 **/
35+
a { text-decoration: none; }
36+
a:hover { text-decoration: underline; }
37+
38+
39+
/** 重置表单元素 **/
40+
legend { color: #000; } /* for ie6 */
41+
fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
42+
button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
43+
/* 注:optgroup 无法扶正 */
44+
45+
/** 重置表格元素 **/
46+
table { border-collapse: collapse; border-spacing: 0; }
47+
48+
/* 清除浮动 */
49+
.ks-clear:after, .clear:after {
50+
content: '\20';
51+
display: block;
52+
height: 0;
53+
clear: both;
54+
}
55+
.ks-clear, .clear {
56+
*zoom: 1;
57+
}
58+
59+
.main {padding: 30px 100px;}
60+
.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
61+
62+
.helps{margin-top:40px;}
63+
.helps pre{
64+
padding:20px;
65+
margin:10px 0;
66+
border:solid 1px #e7e1cd;
67+
background-color: #fffdef;
68+
overflow: auto;
69+
}
70+
71+
.icon_lists li{
72+
float:left;
73+
width: 100px;
74+
height:180px;
75+
text-align: center;
76+
}
77+
.icon_lists .icon{
78+
font-size: 42px;
79+
line-height: 100px;
80+
margin: 10px 0;
81+
color:#333;
82+
-webkit-transition: font-size 0.25s ease-out 0s;
83+
-moz-transition: font-size 0.25s ease-out 0s;
84+
transition: font-size 0.25s ease-out 0s;
85+
86+
}
87+
.icon_lists .icon:hover{
88+
font-size: 100px;
89+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
@font-face {font-family: "iconfont";
3+
src: url('iconfont.eot?t=1467794318'); /* IE9*/
4+
src: url('iconfont.eot?t=1467794318#iefix') format('embedded-opentype'), /* IE6-IE8 */
5+
url('iconfont.woff?t=1467794318') format('woff'), /* chrome, firefox */
6+
url('iconfont.ttf?t=1467794318') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7+
url('iconfont.svg?t=1467794318#iconfont') format('svg'); /* iOS 4.1- */
8+
}
9+
10+
.iconfont {
11+
font-family:"iconfont" !important;
12+
font-size:16px;
13+
font-style:normal;
14+
-webkit-font-smoothing: antialiased;
15+
-webkit-text-stroke-width: 0.2px;
16+
-moz-osx-font-smoothing: grayscale;
17+
}
18+
.icon-qianjin-copy:before { content: "\e601"; }
19+
.icon-kaishi:before { content: "\e643"; }
20+
.icon-tingzhi:before { content: "\e626"; }
5.68 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>字体图标</title>
6+
<link rel="stylesheet" href="demo.css">
7+
<link rel="stylesheet" href="iconfont.css">
8+
<style>
9+
@font-face {font-family: 'iconfont';
10+
src: url('iconfont.eot'); /* IE9*/
11+
src: url('iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
12+
url('iconfont.woff') format('woff'), /* chrome、firefox */
13+
url('iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
14+
url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
15+
}
16+
.iconfont{
17+
18+
font-family:"iconfont" !important;
19+
font-size:16px;font-style:normal;
20+
-webkit-font-smoothing: antialiased;
21+
-webkit-text-stroke-width: 0.2px;
22+
-moz-osx-font-smoothing: grayscale;}
23+
.iconfont li:hover{
24+
color: rgb(166,99,190);
25+
}
26+
li{
27+
display: inline-block;
28+
cursor: pointer;
29+
}
30+
</style>
31+
</head>
32+
<body>
33+
<ul class="iconfont">
34+
<li>&#xe601;前进</li>
35+
<li>&#xe643;开始</li>
36+
<li>&#xe626;停止</li>
37+
</ul>
38+
</body>
39+
</html>

0 commit comments

Comments
 (0)
Please sign in to comment.