需要準備的材料分別有:電腦、瀏覽器、html編輯器。

從網(wǎng)站建設(shè)到定制行業(yè)解決方案,為提供網(wǎng)站設(shè)計、做網(wǎng)站服務(wù)體系,各種行業(yè)企業(yè)客戶提供網(wǎng)站建設(shè)解決方案,助力業(yè)務(wù)快速發(fā)展。創(chuàng)新互聯(lián)將不斷加快創(chuàng)新步伐,提供優(yōu)質(zhì)的建站服務(wù)。
1、首先,打開html編輯器,新建html文件,例如:index.html。
2、在index.html中的head標簽中,輸入meta代碼:meta name="viewport" content="width=device-width, initial-scale=1"。
3、瀏覽器運行index.html頁面,此時PC端的網(wǎng)頁在移動端上也能自動適配。
ios默認一些按鈕會有一些他的樣式但是可以用這個屬性將他還原:
-webkit-appearance:none;
我一般用這個:
::-webkit-input-placeholder{color:#999;}
input[type="text"],input[type="password"]{-webkit-appearance:none;appearance:none;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:0;}
div id="zuo"
!--input type="button" value="往左" class="y"--
h1登 陸/h1
form method="post" action="ok.html"
p class="form_zh"input type="text" placeholder="請輸入賬號" class="form_zh_y" autofocus = "autofocus" required = "required"/p
p class="form_mm"input type="password" placeholder="請輸入密碼" class="form_zh_e" required = "required"/p
input type="submit" value="登 錄" class="form_dl"
/form
p class="qtfsdl"spanimg src="images/weixin.jpg" /微信登陸/spanspanimg src="images/QQ.jpg" /QQ登陸/span/p
p class="qtfsdr"img src="images/frm_xia.jpg"http://p
p class="y"注 冊/p
!--div class="y1" style="position: absolute;top:250px;left: -159px;width: 260px;height: 47px;background: red;opacity: 0.5;"/div--
/div
#zuo{
width: 500px;
height: 540px;
background: white;
position: absolute;
top: calc(50% - 250px);
left:calc(50% - 250px);
color: #292929;
}
#zuo h1,#you h1{margin-top:30px;font-weight: bold;text-align: center;margin-bottom: 30px;}
分享名稱:移動端登入界面css樣式,用html和css設(shè)計一個登錄界面
標題來源:http://www.chinadenli.net/article34/dsdegpe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號、網(wǎng)頁設(shè)計公司、做網(wǎng)站、網(wǎng)站內(nèi)鏈、Google、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)