雖然比較簡陋也沒有交互,但是一些比較基本" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > 從零開始玩編程(Html 介紹篇)

從零開始玩編程(Html 介紹篇)

時間:2023-09-07 03:42:02 | 來源:網(wǎng)站運營

時間:2023-09-07 03:42:02 來源:網(wǎng)站運營

從零開始玩編程(Html 介紹篇):
超文本標(biāo)記語言(英語:HyperTextMarkupLanguage,簡稱:HTML)是一種用于創(chuàng)建網(wǎng)頁的標(biāo)準(zhǔn)標(biāo)記語言
以上就是html的基本定義了,那么我先放一個自己做的簡單網(wǎng)頁

雖然比較簡陋也沒有交互,但是一些比較基本的東西比如圖片,文字等都還是有的。

根據(jù)html的真名我們不難看出html本身并不是完全的編程語言,一個正常的網(wǎng)頁還會由另外兩個語言,css和javascript。其中html負(fù)責(zé)將文字和圖片放在合適的位置,css負(fù)責(zé)將整個網(wǎng)頁美化,javascript負(fù)責(zé)將整個網(wǎng)頁動起來。

<!DOCTYPE html><html lang="zh" class="no-js"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Log In</title> </head><script>function check(){hide}</script><style>.bgjpg{ background-image: url(img/4.jpg); background-repeat:no-repeat ; position:fixed; position:fixed; top: 0; left: 0; width:100%; height:100%; min-width: 1000px; z-index:-10; zoom: 1; background-color: #fff; background-repeat: no-repeat; background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-position: center 0; } .fir{ transform:translate(50%,-50%); position: absolute; top:24%; right:50%; margin:auto; display:block; font-weight: bold color : #fafafa; font-size: 500%; color: transparent; background-color : black; text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px; -webkit-background-clip : text; } .kuang{ transform:translate(50%,-50%); position: fixed; top:38%; right:50%; transform:translate(50%,-50%); width:35%; height:40%; margin:0 auto; border-radius: 70px; background: linear-gradient(315deg, #ffffff, #ffffff); box-shadow: -29px -29px 58px #ffffff, 29px 29px 58px #ffffff; opacity: 0.5; } .iuser{ position: fixed; top:37.75%; right:64%; transform:translate(50%,-50%); margin:auto; display:block; } .ipass{ transform:translate(50%,-50%); position: fixed; top:47.75%; right:64%; transform:translate(50%,-50%); margin:auto; display:block; }.ilog{ transform:translate(50%,-50%); height: 4%; width: 3%; position: fixed; top:44%; right:41%; transform:translate(50%,-50%); margin:auto; display:block;} /*-------------------------------這里開始輸入框------------------------------------------------------*/.input { position: relative; z-index: 1; display: inline-block; margin: 1em; max-width: 400px; width: calc(100% - 2em); vertical-align: top;}.input__field { position: relative; display: block; float: right; padding: 0.9em; width: 60%; border: none; border-radius: 0; background-color: rgb(107, 105, 105); opacity: 0.5; color: rgb(19, 18, 18); font-weight: bold; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-appearance: none; /* for box shadows to show on iOS */}.input__field:focus { outline: none;}.input__label { display: inline-block; float: right; padding: 0 1em; width: 40%; color: #000000; font-weight: bold; font-size: 70.25%; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}.input__label-content { position: relative; display: block; padding: 1.6em 0; width: 100%;}.graphic { position: absolute; top: 0; left: 0; fill: none;}.icon { color: rgb(0, 0, 0); font-size: 150%;}/* Individual styles *//* Jiro */.input--jiro { margin-top: 2em;}.input__field--jiro { padding: 0.9em 0em; width: 100%; background: transparent; color: #000000; opacity: 0; -webkit-transition: opacity 0.3s; transition: opacity 0.3s;}.input__label--jiro { position: absolute; left: 0; padding: 0 0.85em; width: 140%; height: 100%; text-align: left; pointer-events: none;}.input__label-content--jiro { -webkit-transition: -webkit-transform 0.3s 0.3s; transition: transform 0.3s 0.3s;}.input__label--jiro::before,.input__label--jiro::after {transform: translate(50%,-50%); content: ''; position: absolute; top: 0; left: 0; width: 140%; height: 100%; -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s;}.bgcolor-7 { background: none; }.input__label--jiro::before { border-top: 1px solid #303030; -webkit-transform: translate3d(0, 100%, 0) translate3d(0, -2px, 0); transform: translate3d(0, 100%, 0) translate3d(0, -2px, 0); -webkit-transition-delay: 0.3s; transition-delay: 0.3s;}.input__label--jiro::after { z-index: -1; background: #303030; -webkit-transform: scale3d(1, 0, 1); transform: scale3d(1, 0, 1); -webkit-transform-origin: 50% 0%; transform-origin: 50% 0%; opacity: 0.2;}.input__field--jiro:focus,.input--filled .input__field--jiro { opacity: 1; -webkit-transition-delay: 0.3s; transition-delay: 0.3s;}.input__field--jiro:focus + .input__label--jiro .input__label-content--jiro,.input--filled .input__label-content--jiro { -webkit-transform: translate3d(0, -80%, 0); transform: translate3d(0, -80%, 0); -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);}.input__field--jiro:focus + .input__label--jiro::before,.input--filled .input__label--jiro::before { -webkit-transition-delay: 0s; transition-delay: 0s;}.input__field--jiro:focus + .input__label--jiro::before,.input--filled .input__label--jiro::before { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}.input__field--jiro:focus + .input__label--jiro::after,.input--filled .input__label--jiro::after { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); -webkit-transition-delay: 0.3s; transition-delay: 0.3s; -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);} /*----------------------------結(jié)束---------下面輸入框位置---------------------------------------*/.inputuser{ transform:translate(50%,-50%); position: fixed; top:36%; right:55%; transform:translate(50%,-50%); margin:auto; display:block;}.inputpass{ transform:translate(50%,-50%); position: fixed; top:46%; right:55%; transform:translate(50%,-50%); margin:auto; display:block;} </style> <body> <form> <div class="bgjpg"></div> <div class="kuang"></div> <div class="fir" >Log In</div> <div class="iuser"><img src="img/user.png" style="transform:scale(0.1);" > </div> <div class="ipass"><img src="img/pass.png" style="transform:scale(0.1);" > </div> <div class="inputuser"> <div class="input input--jiro"> <input class="input__field input__field--jiro" type="text" id="user" /> <label class="input__label input__label--jiro" for="user"> <span class="input__label-content input__label-content--jiro">Input Your Username Here</span> </label> </div> </div> <div class="inputpass"> <div class="input input--jiro"> <input class="input__field input__field--jiro" type="text" id="pass" /> <label class="input__label input__label--jiro" for="pass"> <span class="input__label-content input__label-content--jiro">Input Your Password Here</span> </label> </div> </div> </form> <div class="ilog"> <img src="img/log.png"style="transform:scale(0.2);" onclick="check();" /></div> </body> </html> 這就是這個網(wǎng)頁的基本代碼,其實入果去除輸入框的話代碼還是比較短的,而其中使用到的一些標(biāo)記語言我們也會慢慢了解

在上面的代碼中,主要用到的都是css和html,javascript 有機(jī)會我會單獨在開一部分介紹,html和css已經(jīng)能夠做出精美的畫面了

這里需要介紹一個網(wǎng)站,github,國內(nèi)的話可以用gitee,這個網(wǎng)站可以保存你的靜態(tài)網(wǎng)站并可以讓別人訪問,可以先在里面注冊一個賬號,后面會單獨講解如何上傳你的網(wǎng)頁。

關(guān)于編這個的軟件,我自己用的是vscode加插件,如果你有習(xí)慣的也可以用,由于這個是不需要編譯的,瀏覽器會編譯,所以其實用記事本就行。如果想直接看到結(jié)果的話可以用Microsoft expression web, 這個是可以直接將結(jié)果展示的,而且還可以直接在頁面上編輯,十分方便。

關(guān)于使用的瀏覽器推薦谷歌,其次edge和火狐等,不建議ie

那么下次再見了~

感謝~





























關(guān)鍵詞:

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉