1. 你查看这个截图的论坛注册单时的源文件
2.拾取那个边框的颜色代码
3.在源代码中搜索,肯定能够找到!学习一种方法比 别人直接告诉你 更有用
有三个问题:1:© 为特殊编码,不被支持,在代码中改成 &-copy即可(使用时请去掉 - 我加上-为了不让百度页面识别。)。2:form 的运用 ,在一个注册页面下,所提交的注册信息必须在同一个form里才有效。而你用了多个form,使得注册信息无法提交。
3:id为main标签缺少</div>,需补充。
以上问题我已帮你更正,希望对你有帮助:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=gb2312" />
<style type="text/css">
body{
margin:0
padding:0}
#header{
width:645px
height:85px
margin:6px 30% 18px 22.3%}
#main{
width:645px
margin:0 30% 0 22.7%}
#header #logo{
width:137px
background:url(images/logo-yy.gif) no-repeat left top
height:46px}
#header #logoarea{
background:#D9F0F0
width:504px
float:right
height:24px
margin:-26px 0 0 0
}
#header #banner{
width:auto
height:40px}
#header #sider{
float:right
background:#D9F0F0
margin:-26px 0 0 0
width:100px
height:24px}
#header #logoarea p{
font-weight:bold
font-size:14px
margin:4px 0 0 10px
}
#header #sider p{
float:right
text-decoration:underline
color:#0000CC
margin:4px 14px 0 0
font-size:14px}
#header #banner img{
float:right
margin:8px 9px 0 0}
#main #container p{
font-weight:bolder
font-size:12px}
#main #container form{
margin:-11px 0 0 0}
#main #container #1{
font-size:24px
color:#666666}
#main #container textarea{
font-size:12px
color:#666666
width:480px
height:110px}
#footer{
margin:20px 0 0 -10px
background:#E6E6E6
height:20px
width:650px
float:left
text-align:center}
#footer p{
font-size:14px
font::Geneva, Arial, Helvetica, sans-serif
color:#8B77D5
font-weight:300
font-weight:400
margin:0 auto 5px auto}
.clear{clear:both}
</style>
<title>百度用户注册</title>
</head>
<body>
<div id="header">
<div id="logo">
</div>
<div id="logoarea">
<p>用户注册</p>
</div>
<div id="sider">
<a href="#"><p>帮助</p></a>
</div>
<div id="banner">
<img src="images/未命名.jpg"/>
</div>
</div>
<div id="main">
<div id="container">
<p id="2">用户名:</p>
<form><input type="text" />
<p id="1">不超过7个汉字,或14个字节(数字,字母和下划线)</p>
<span><p id="2">密码:</p>
<input type="text" /><p>确认密码:</p><input type="text" /></span>
<p id="1">密码长度6~14位,字母区分大小写。<a href="#">密码过于简单的危害</a></p><br />
<p id="2">性别:</p>
<input type="radio" name="sex" value="男" />男
<input type="radio" name="sex" value="女" />女
<p id="2">电子邮箱地址:</p>
<input type="text" />
<p id="1">请输入有效的邮件地址,当密码遗失时凭此领取</p>
<p>输入图中字符:</p>
<input type="text" /><img src="images/untitled.bmp" /><a href="#">看不清?</a>
<br />
<input type="submit" value="同意以下协议并提交" />
</form><br /><br />
</div></div>
<div id="footer"><p>© 2010 Baidu</p></div>
</body>
</html>
这个要看引用文件的路径了。
比如在用户登录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属性一样。