求一个简单的登录界面CSS代码

html-css016

求一个简单的登录界面CSS代码,第1张

<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"><span><img src="images/weixin.jpg" />微信登陆</span><span><img src="images/QQ.jpg" />QQ登陆</span></p>

<p class="qtfsdr"><img src="images/frm_xia.jpg"/></p>

<p class="y">注 册</p>

<!--<div class="y1" style="position: absolutetop:250pxleft: -159pxwidth: 260pxheight: 47pxbackground: redopacity: 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:30pxfont-weight: boldtext-align: centermargin-bottom: 30px}

这个要看引用文件的路径了。

比如在用户登录html中,引用的reg.css和login.css标签如下:

 

 (1)<link href='reg.css' type='text/css' rel='stylesheet' />

(2)<link href='css/login.css' type='text/css' rel='stylesheet' />

reg.css的路径前没有什么文件夹,说明reg.css的路径是与html文件存放在同一个文件夹下的,而login.css 前面多了'css/',这说明,login.css是存放在与html同一文件夹中的一个css文件夹中,举例说明如下:

 

 A文件夹中有:(1)html登录注册.html (2)reg.css(3)css文件夹【即是B文件夹】

而B文件夹中:(1)login.css

而UserAjax.rar是一个压缩文件吧?解压后,看你把文件放哪了,就在script标签中的src中设置好路径就行了,跟上面link标签中的href属性一样。

<div class="box" style="width:200pxoverflow:hiddenline-height:24pxfont-size:12pxtext-align:centerclear:both">

<input type="text" style="width:120pxheight:24pxborder:1px solid #ccccccfloat:leftmargin:4px 0" value="USER ID"/>

<!--type是设置input的类型,text,是单行文本,button是按钮,style,是设置input的属性依次为:宽度,高度,描边(线宽,模式,颜色),浮动(左边),跟周边距离(上下4px,左右0),框里默认字符-->

<input type="button" style="width:60pxheight:50pxmargin:4pxfloat:rightdisplay:inline" value="login" />

<input type="text" style="width:120pxheight:24pxborder:1px solid #ccccccfloat:left" value="PASSWORD" />

</div>

用dreamweaver建一个HTML文本,然后复制这段,到<body></body>里,这么详细,你不能不给我分!!