七夕來襲!是時候展現專屬于程式員的浪漫了!你打算怎麼給心愛的人表達愛意?鮮花禮物?代碼表白?還是創意DIY?或者…無論那種形式,快來秀我們一臉吧!
📂文章目錄
- 二、📚網站介紹
- 三、🔗網站效果
- ▶️1.視訊示範
- 🧩 2.圖檔示範
- 四、💒 網站代碼
- 🧱HTML結構代碼
- 🏠CSS樣式代碼
- 五、🎁更多源碼
二、📚網站介紹
📒網站檔案方面:html網頁結構檔案、css網頁樣式檔案、js網頁特效檔案、images網頁圖檔檔案;
📙網頁編輯方面:可使用任意HTML編輯軟體(如:
Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++
等任意html編輯軟體進行運作及修改編輯等操作)。
其中:
(1)📜html檔案包含:其中index.html是首頁、其他html為二級頁面;
(2)📑 css檔案包含:css全部頁面樣式,3D動态效果,雪花飄落等等
(3)📄 js檔案包含:頁面炫酷效果實作
三、🔗網站效果
▶️1.視訊示範
38-情人節滿屏愛心HTML5特效
🧩 2.圖檔示範
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiI0gTMx81dsQWZ4lmZf1GLlpXazVmcvwFciV2dsQXYtJ3bm9CX9s2RkBnVHFmb1clWvB3MaVnRtp1XlBXe0xCMy81dvRWYoNHLwEzX5xCMx8FesU2cfdGLwMzX0xiRGZkRGZ0Xy9GbvNGLpZTY1EmMZVDUSFTU4VFRR9Fd4VGdsYTMfVmepNHLrJXYtJXZ0F2dvwVZnFWbp1zczV2YvJHctM3cv1Ce-cmbw5COzgDMzITZzUjN3YjZjFGNzYzXzATOxMjM1EzLcBTMyIDMy8CXn9Gbi9CXzV2Zh1WavwVbvNmLvR3YxUjLyM3Lc9CX6MHc0RHaiojIsJye.png)
四、💒 網站代碼
🧱HTML結構代碼
<!--
* @Author: your name
* @Date: 2021-01-14 15:04:13
* @LastEditTime: 2021-01-14 15:05:48
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \情人節滿屏愛心HTML5特效\index.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>情人節滿屏愛心HTML5特效</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="main"></div>
<div id="contents">
<canvas id="canvas">This browser cannot use a canvas.</canvas>
</div>
<script src="js/script.js"></script>
<div
style="
text-align: center;
margin: 50px 0;
font: normal 14px/24px 'MicroSoft YaHei';
"
></div>
</body>
</html>
🏠CSS樣式代碼
/********************
Common
********************/
html, body {
height: 100%;
width: 100%;
font-family: Helvetica, verdana, monospace;
color: #FF0383;
font-size: 100%;
padding: 0;
margin: 0;
letter-spacing: 0.2rem;
overflow: hidden;
background: #ffdde1;
}
a {
color: #FF0383;
text-decoration: none;
}
h1 {
font-size: 1.6rem;
}
h2 {
padding: 0.8rem 0 0 0;
}
p {
padding: 0.8rem 0;
font-size: 0.8rem;
}
div#main {
position: absolute;
top: 0;
left: 0;
padding: 1.6rem;
}
p#loading {
position: absolute;
bottom: 0;
right: 0;
padding: 1.6rem;
}
/********************
Contents
********************/
canvas#canvas {
background: #ffdde1;
}
五、🎁更多源碼
1.如果我的部落格對你有幫助
請 “👍點贊” “✍️評論” “💙收藏”
一鍵三連哦!