效果:
代码:
<!doctype html><html> <head> <meta charset="utf-8"> <title>软件定制开发供应商明金同学个人网页</title> <style type="text/css"> * { margin: 0; padding: 0; } a { text-decoration: none; } .clearfix:after { content: ""; display: block; height: 0; visibility: hidden; clear: both; } .clearfix { *zoom: 1; } body { background: url(https://gitee.com/vmu/cimg/raw/master/img/bg.jpg) no-repeat; background-size: cover; background-attachment: fixed; } .content { width: 900px; height: 500px; margin: 200px auto 0 auto; border-radius: 10px; background-color: rgba(236, 236, 236, 0.59); transition: all 1.0s; } .content img { float: left; width: 200px; height: 200px; margin: 150px 0 0 80px; border-radius: 100px; } .content:hover { box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.52); } .content_r { float: right; width: 500px; margin: 80px 60px 0 0; } .content_l { float: left; width: 100%; text-align: center; } .content_l h5 { font-size: 17px; } .cc { margin-top: 10px; color: #1F2023; font-size: 18px; } .color_1 { color: #4855EC; font-size: 18px; } .deeppink { color: deeppink; } .link { margin-top: 30px; } .link a { display: block; float: left; width: 120px; height: 45px; margin: 5px 5px 0 0; color: #fff; line-height: 45px; transition: all 0.8s; } .link a:hover { background-color: rgba(0, 201, 243, 0.35); } .deeppink_1 { background-color: deeppink; } .dodgerblue { background-color: dodgerblue; } .magenta { background-color: magenta; } .orange { background-color: orange; } </style> </head> <body> <div class="content"> <img src="https://gitee.com/vmu/cimg/raw/master/img/ch.jpg" alt=""> <div class="content_r clearfix"> <div class="content_l clearfix"> <h2>Hi~ 我是明金同学, Welcome here !</h2> <p class="cc">欢迎来到我的主页,一位热爱编程的小渣渣~</p> <p class="cc">爱好计算机,会去自学一些感兴趣的东西 !</p> <br> <p class="color_1">I am an ambitious salted fish!</p> <p class="color_1">我是一位有野心的咸鱼!</p> <br> <p class="deeppink">只要路是对的,就不怕路远。</p> <p class="deeppink">As long as the road is right, you are not afraid of the distance.</p> <div class="link"> <a href="#" class="dodgerblue" target="_blank">官网</a> <a href="https://ymjin.blog.csdn.net/" class="deeppink_1" target="_blank">QQ群</a> <a href="https://ymjin.blog.csdn.net/" class="magenta" target="_blank">个人博客</a> <a href="https://ymjin.blog.csdn.net/" class="orange" target="_blank">网易云音乐</a> </div> </div> </div> </div> </body></html>
- 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
- 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
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
素材: