1 、HTML相關知識點
HTML(超文本標記語言)是網頁的核心、首先你要學會,不要害怕,HTML很容易學習的,剛開始多記多練,但是到最后還是要自己深入專研,簡單的入門是很快,但學好HTML是成為Web開發人員的基本條件。
學習資源:
HTML Dog (http://htmldog.com/)
HTML入門指南 (http://www.w3.org/MarkUp/Guide/)
W3C HTML學習教程 (http://www.w3schools.com/html/)
2、CSS3相關知識點
通過使用 CSS 來提升工作效率!在我們的 CSS 教程中,學到如何使用 CSS 同時控制多重網頁的樣式和布局,如何把一個網頁打扮成漂亮的風格就需要用到樣式,這個是前端開發必須掌握的一個東西。
學習資源:
W3C CSS3 學習 (http://www.w3school.com.cn/css3/ )
3、直接上代碼
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<!doctype html>
<
html
lang
=
"en"
>
<
head
>
<!--聲明當前頁面的編碼集:charset=gbk,gb2312(中文編碼),utf-8國際編碼-->
<!--當前頁面的三要素-->
<
meta
charset
=
"UTF-8"
>
<
meta
name
=
"Generator"
content
=
"EditPlus®"
>
<
meta
name
=
"Author"
content
=
"吉米"
>
<
meta
name
=
"Keywords"
content
=
""
>
<
meta
name
=
"Description"
content
=
""
>
<
title
>CSS3按鈕光圈懸浮效果</
title
>
<
style
type
=
"text/css"
>
*{margin:0;padding:0;}
body{font-size:12px;font-family:"微軟雅黑";background-color:#000}
ul {
margin: 0 auto;
text-align: center;
margin-top: 80px;
}
li {
display: inline-block;
list-style: none;
margin-right: 50px;
text-align: center;
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
}
.button {
position: relative;
font-family: futura, helvetica, sans;
letter-spacing: 1px;
text-transform: uppercase;
background-color: #ffeded;
display: inline-block;
line-height: 60px;
width: 55px;
height: 55px;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 60%;
text-decoration: none;
color: #c40000;
-moz-transition: all 275ms cubic-bezier(0.53, -0.67, 0.73, 0.74);
-o-transition: all 275ms cubic-bezier(0.53, -0.67, 0.73, 0.74);
-webkit-transition: all 275ms cubic-bezier(0.53, -0.67, 0.73, 0.74);
transition: all 275ms cubic-bezier(0.53, -0.67, 0.73, 0.74);
}
.button:hover {
background-color: #fff;
-moz-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
-o-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
-webkit-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
}
.button:hover .pus {
opacity: 1;
border: 1px solid #A8CFCB;
-moz-transform: scale(1.15);
-ms-transform: scale(1.15);
-webkit-transform: scale(1.15);
transform: scale(1.15);
-moz-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
-o-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
-webkit-transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
}
.pus {
position: absolute;
top: -1px;
left: -1px;
width: 100%;
height: 100%;
opacity: 0;
background: none;
border: 1px solid #C56089;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
-moz-transition: all 0.3s cubic-bezier(0.53, -0.67, 0.79, 0.74);
-o-transition: all 0.3s cubic-bezier(0.53, -0.67, 0.79, 0.74);
-webkit-transition: all 0.3s cubic-bezier(0.53, -0.67, 0.79, 0.74);
transition: all 0.3s cubic-bezier(0.53, -0.67, 0.79, 0.74);
}
</
style
>
</
head
>
<
body
>
<
ul
>
<
li
><
a
href
=
"#"
class
=
"button"
>預約<
span
class
=
"pus"
></
span
></
a
></
li
>
<
li
><
a
href
=
"#"
class
=
"button"
>購買<
span
class
=
"pus"
></
span
></
a
></
li
>
<
li
><
a
href
=
"#"
class
=
"button"
>支付<
span
class
=
"pus"
></
span
></
a
></
li
>
</
ul
>
</
body
>
</
html
>
|
4 、顯示效果
總結:
人有時候就要不斷的折騰去研究發現,才能夠體會到下一秒的愉悅。我是一名程序猿,如果你也喜歡互聯網,喜歡技術。可以一起學習我微信公眾號:資訊酷(zixuncool)