企业网站前端制作实战教程 JQuery CSS JS HTML 登录界面

盒子模型

引入重置css样式reset样式

@charset "utf-8";
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;/*background: transparent;*/
}table {border-collapse: collapse;border-spacing: 0;
}fieldset,
img {border: 0;
}address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {font-style: normal;font-weight: normal;
}ol,
ul {list-style: none;
}caption,
th {text-align: left;
}h1,
h2,
h3,
h4,
h5,
h6 {font-size: 200%;font-weight: normal;
}:focus {outline: 0;
}a {text-decoration: none;
}a:hover img {border: none;
}a:active {noOutline: expression(this.onFocus=this.blur());
}/*清除浮动*/.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;
}.clearfix {display: inline-block;
}/* Hides from IE-mac \*/* html .clearfix {height: 1%;
}.clearfix {display: block;
}/* End hide from IE-mac */

login.html

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><link rel="stylesheet" href="./css/reset.css"><link rel="stylesheet" href="./css/style.css">
</head><body><!-- 登录框 --><div class="login"><!-- 登录框具体部分 --><div class="loginmain"><h4>登录管理系统</h4><form action="/" method="get"><ul><li><span>管理员账号:</span><input type="text" name="username" value=""></li><li><span>管理员密码:</span><input type="password" name="password" value=""></li><li><span>登录验证码:</span><input type="text" name="verifyimg" value=""></li><li><div class="verifyimg"><img src="./image/verifyimg.jpg" width="100%" height="100%" alt=""></div></li><li><input type="button" value="登录"></li></ul></form></div></div>
</body></html>

引入style.css

/* 登录样式开始 */.login {width: 500px;height: 340px;background-color: #0077ca;position: absolute;top: 50%;left: 50%;margin: -170px 0 0 -250px;
}.loginmain {padding: 20px;color: #fff;
}.loginmain ul li {margin-top: 15px;
}.loginmain ul li span {display: inline-block;width: 125px;height: 10px;text-align: right;font-size: 14px;
}.loginmain ul li input[type="text"],
.loginmain ul li input[type="password"] {width: 250px;height: 30px;padding: 0 5px;
}.loginmain ul li .verifyimg {width: 262px;height: 48px;margin-left: 130px;background: #1696d7;
}.loginmain ul li input[type="button"] {width: 80px;height: 30px;border: none;background: #00497d;color: #fff;font-size: 14px;margin-left: 215px;
}/* 登录界面实现 */

运行结果

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/421060.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php,Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)

修改apache上传文件大小限制 PHP上传文件大小限制解决方法&#xff1a; 第一&#xff1a; 在php.ini里面查看如下行&#xff1a; upload_max_filesize 8M post_max_size 10M memory_limit 20M 把这些值改成我所说的&#xff0c;看看有没有问题&#xff0c;另外要确认…

JSON简介,语法,在html中应用

JSON简介 1&#xff0c;json(JavaScript Object Notation)是一种轻量级的文本数据交换格式而非编程语言&#xff0c; 其语法只支持字符串&#xff0c;数值&#xff0c;布尔值及null以及在次基础上的对象和数组。 如下面是json数组 <script>var JSONObject {"nam…

企业网站前端制作实战教程 JQuery CSS JS HTML 登录表单验证

引入重置css样式reset样式 charset "utf-8"; html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong…

实验11 编写子程序

本章知识很琐碎&#xff0c;原则是用哪查哪&#xff0c;无需记忆。 设置标志寄存器的意义在于&#xff1a; &#xff08;1&#xff09;用来存储相关指令的某些执行结果&#xff1b; &#xff08;2&#xff09;用来为CPU执行相关指令提供行为依据&#xff1b; &#xff08;3…

Java解析JSON文件

Java解析基于json-simple库,github地址。 https://github.com/fangyidong/json-simple 解析是把字符串变为json文件&#xff0c;或者把json文件变成字符串&#xff0c;然后取值。 package com.lovely.json;import java.io.IOException; import java.io.StringWriter; import j…

前端学习(1041):todolist--html界面

<!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>todoList待办事项</title> </head><b…

zoj 1366 Cash Machine

01背包加变形 动态规划的时候就犯浑了&#xff0c;每个状态都要记录的&#xff0c;我却只记录了当前状态的&#xff01;&#xff01; #include<stdio.h> #include<string.h> int max(int a,int b) {return (a) > (b) ? (a) : (b); } int a[12],b[12],M,dp[12][…

技术学习路线和安排

操作系统&#xff0c;数据结构和算法&#xff0c;计算机网络是基础课程&#xff0c;这三门课放在零散时间学习&#xff0c;下面这些任务可在2017年内完成。 操作系统&#xff1a;王爽《汇编语言》&#xff0c;《从实模式到保护模式》&#xff0c;《哈工大操作系统公开课》&…

前端学习(1042):todoList存储

<!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>todoList待办事项</title><script src"…

JS实现Ajax异步刷新

用JS实现post和get两种方式异步刷新 1&#xff0c;Ajax是个啥玩意&#xff1f; Ajax 即"Asynchronous JavaScript And XML", 指一种创建交互式&#xff0c;快速动态网页应用的网页开发技术&#xff0c;无需加载整个网页的情况下&#xff0c;能够更新部分网页的技术。…

实验一:写一个hello world小程序

实验一&#xff1a;写一个hello world小程序 注&#xff1a;本课程为网易云课堂孟宁老师《软件工程&#xff1a;C编码实践篇》 的配套实验与作业。请配合 MOOC 课程学习使用。 实验要求 写一个hello world小程序&#xff1a; 在Linux命令行环境&#xff08;实验楼&#xff09;…

前端学习(1043):回车把数据存储到本地存储里面

<!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>todoList待办事项</title><script src"…

Keen Team

Keen Team (碁震安全研究团队&#xff0c;KeenTeam)是一支由在信息安全理论和技术研究方面全球领先的中国“白帽”安全专家组成的信息安全研究队伍&#xff0c;成员主要来自微软的安全漏洞研究、安全攻击和防御技术研究、安全应急响应团队。目前&#xff0c;KeenTeam是世界范围…

jQuery 实现Ajax

js实现jQuery请看 js实现jQuery 首先得要jQuery库&#xff0c;里面要jQuery所有的版本提供选择 http://www.jq22.com/jquery-info122 jQuery 相当于一个简化js编程的轻量级的类库。 jQuery代码写在JS的function里面以$符号开头&#xff0c;里面有可以有function&#xff0c;有各…

SSH远程登录

原文请参阅阮一峰网络日志&#xff1a;http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html SSH是每一台Linux电脑的标准配置。 随着Linux设备从电脑逐渐扩展到手机、外设和家用电器&#xff0c;SSH的使用范围也越来越广。不仅程序员离不开它&#xff0c;很多普通用…

前端学习(1044):本地存储实现数据录入

<!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>todoList待办事项</title><script src"…

XCode5添加新建类模板(Cocos2dx Template Class for Scene or Layer)

注&#xff1a;以下内容截选自Cocos2D开发网–Cocos2Dev.com&#xff0c;谢谢&#xff01; 怎么添加xcode类模板? 1、打开Xcode的类模板目录地址&#xff1a;/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates 2、打开里面C and C文件&…

Ajax解析JSON文件

Ajax解析后台来json文件&#xff0c;是用jQuery方式实现的。依赖jQuery库。 jQuery库 Coding coming… 需求&#xff1a;从后台发送学生的json对象&#xff0c;输出到前台&#xff0c;依赖Java解析json的jar包。 java解析json 实体类 package com.lovely.entity;public class …

实验12 编写0号中断的处理程序

1&#xff0c;在地址0:200h处安装中断代码&#xff0c;安装程序如下&#xff1a; assume cs:codesgcodesg segment start: mov ax, csmov ds, axmov si, offset do0 ;设置ds:si指向源地址mov ax, 0mov es, ax mov di, 200h ;设置es:si指目的地址mov cx, offset do0end - o…

前端学习(1045):todolist本地存储加载到页面

<!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>todoList待办事项</title><script src"…