回 帖 发 新 帖 刷新版面

主题:大麻烦,有谁见过这样的情况?

下面三个图依次是在腾旬tt,火狐和dw下看到的内容,为什么tt下会不正常呢?
主要就是在tt和ie下的问题,火狐的问题我可以解决。

[img]http://blog.programfan.com/upfile/200706/20070621202850.jpg[/img]


[img]http://blog.programfan.com/upfile/200706/2007062120312.jpg[/img]


[img]http://blog.programfan.com/upfile/200706/20070621203836.jpg[/img]


代码分两段

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.divtl{
background-color:#E4EBF8; 
vertical-align:top;
text-align:center; 
font-size:12px;
font-weight:bold;
}
.div1 {
height:24px;
border-style:solid; 
border:1px; 
border-color:#000000; 
font-weight:bold;
font-size:12px;
line-height:15px;
vertical-align:middle;
border-top:0px;}
.div2 {
height:24px; 
border-style:solid; 
border:1px; 
border-color:#000000; 
line-height:24px; 
text-align:center; 
vertical-align:middle;
font-size:12px;
border-top:0px;
border-left:0px;
}
.div3 {
border-style:solid; 
border:1px; 
border-color:#000000; 
background-color:#FFFFFF; 
text-align:center; 
vertical-align:middle;
font-size:14px;
border-top:0px;
border-left:0px;
}
a:link { text-decoration:none;}
a:active { text-decoration:none}
a:hover { text-decoration:none;}
a:visited { text-decoration:none;}
.smalltxt { font: 12px Tahoma, Verdana, arial, helvetica,宋体 }
.div4{float: left;}
-->
</style></head>
<body bgcolor="#dbeffb">
<%
dsn="dsn=km11sc; uid=sa; pwd=111111;"
username=request.Cookies("ui")("name")
if isnull(username) or isempty(username) then response.Redirect("error.asp?message=请先登录")
set rs = Server.CreateObject("ADODB.recordset")
sql="select * from person where username='"&username&"'"
rs.open sql,dsn,1,1
if rs.eof or rs.bof then response.Redirect("error.asp?message=没有该用户")    
if not (isnull(rs("其他联系方式1")) or isempty(rs("其他联系方式1"))) then
    Set regEx = New RegExp            
    regEx.Pattern = "([^\|]+)\|([^\|]+)$"    
      set Matches=regEx.Execute(rs("其他联系方式1")) 
    for each Match in Matches
    othern1=Match.SubMatches(0)
    otherv1=Match.SubMatches(1)
    next
    Set regEx = Nothing
end if

if not (isnull(rs("其他联系方式2")) or isempty(rs("其他联系方式2"))) then
    Set regEx = New RegExp            
    regEx.Pattern = "([^\|]+)\|([^\|]+)$"    
      set Matches=regEx.Execute(rs("其他联系方式2")) 
    for each Match in Matches
    othern2=Match.SubMatches(0)
    otherv2=Match.SubMatches(1)
    next
    Set regEx = Nothing
end if

cb=rs("所属公司")
if isnull(cb) or isempty(cb) then
cb="您没有填写"
else
set rs1 = Server.CreateObject("ADODB.recordset")
sql="select 公司名称 from company where 公司编号='"&cb&"'"
rs1.open sql,dsn,1,1
    if not(rs1.eof or rs1.bof) then
    cb=rs1("公司名称")
    else
    cb="您填写的公司不存在,可能已经被删除。"
    rs.close
    set rs=nothing
    end if
end if
%>
<script type="text/javascript" language="javascript">
function trim(str) {
return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
}
function GetResult_Load(level,shangjibianma)
{        
        if (typeof(shangjibianma)=="undefined"){shangjibianma=""}
        var sel = document.getElementById("select"+level);
        var getrs= new ActiveXObject("Microsoft.XMLHTTP");
        getrs.open("post","getdateindb.asp?type=select&level="+level+"&shangjibianma="+shangjibianma,false);
        getrs.send();
        BuildSel_Load(getrs.responseText,sel);
        var em="";
            if (level==3)
            {
            level=level+1;
            sel = document.getElementById("select"+level);    
            BuildSel_Load(em,sel);
            }else if (level==2)
            {
            level=level+1
            sel = document.getElementById("select"+level);    
            BuildSel_Load(em,sel);
            level=level+1
            sel = document.getElementById("select"+level);    
            BuildSel_Load(em,sel);
            }
}
function BuildSel_Load(str,sel)
{
        sel.options.length=0;
        if (str!="")
        {
                var Tarrstr = new Array();
                Tarrstr = str.split(",");
                for(var i=0;i<Tarrstr.length;i=i+2)
                {var j=i+1;
                sel.options[sel.options.length]=new Option(Tarrstr[i],Tarrstr[j]);
                }
        }
        var opobj =  new Option("请选择","");
        sel.add(opobj,0);
        sel.selectedIndex = 0;
}
</script>

回复列表 (共3个回复)

沙发

<form name="edituserinfo" method="post" action="../freg.asp">
<table width="800"align="center" border="0" cellspacing="0" cellpadding="0" class="smalltxt" style="padding-left:5px;">
  <tr>
  <td colspan="3" height="36" background="../images/top1bg.gif" class="smalltxt"><a href="../index.asp">昆明朝九晚五首页</a>|<a href="..//bbsindex.asp">昆明朝九晚五论坛</a>|</td>
</tr>
  <tr>
    <td colspan="3" class="div1" background="../images/catbg.gif">个人信息修改<input type="hidden" name="class" value="editperson"/><input type="hidden" name="username" value="<%=username%>"/></td>
  </tr>
  <tr>
    <td colspan="3" class="div1">直接修改:</td>
  </tr>
  <tr>
    <td width="150" class="div1">密码:</td>
    <td colspan="2" class="div2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="smalltxt">
      <tr>
        <td><div class="div4">原始密码:          
            <input name="oldpass" id="oldpass" type="text" class="input" size="10" maxlength="10" onblur="checkoldpass(this)" />
          </div> <span id="checkoldpass">6-10位,支持“数字”、“字母”、“_”。</span></td></tr>
        <tr><td><div class="div4">新密码:     
              <input name="userpass" id="password" type="text" class="input" size="10" maxlength="10" onblur="checkpassword()" />
          </div> <span id="checkpassword">6-10位,支持“数字”、“字母”、“_”。</span></td></tr>
        <tr><td><div class="div4">确认新密码:<input name="cuserpass" id="password2" type="text" class="input" size="10" maxlength="10" onBlur="checkpassword()"></div> <span id="checkpassword2">6-10位,支持“数字”、“字母”、“_”。</span></td>
      </tr>
<script type="text/javascript" language="javascript"><!--

document.getElementById("password").readOnly=true;
document.getElementById("password2").readOnly=true;

--></script>


    </table></td>
  </tr>
  <tr>
    <td class="div1">头像:</td>
    <td colspan="2" class="div2">&nbsp;</td>
  </tr>
  <tr>
    <td class="div1">个性签名:</td>
    <td colspan="2" class="div2">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="text2">
  <tr>
    <td>随便写点什么吧,不要太长,200字以内,不要使用“&lt;”、“&gt;”、“|”。</td>
  </tr>
  <tr>
    <td><textarea name="sign" id="sign" cols="60" class="input1" onBlur="checkid(this)"></textarea></td>
  </tr>
  <tr>
    <td><span id="checksign"></span></td>
  </tr>
  </table></td>
  </tr>
  <tr>
    <td class="div1">电子邮件:</td>
    <td width="189" class="div2"><%=rs("电子邮件")%></td>
    <td width="461" class="div2"><div class="div4"><input name="电子邮件" id="email" type="text" class="input" size="28" onBlur="checkemail(this)"></div><span id="checkemail"></span></td>
  </tr>
  <tr>
    <td class="div1">移动电话:</td>
    <td class="div2"><%=rs("移动电话")%></td>
    <td class="div2"><div class="div4"><input name="移动电话" id="mobile" type="text" class="input" size="15" onBlur="checkphone(this)"></div><span id="checkmobile">手机或小灵通,小灵通请填写区号如:0871-8888888。</span></td>
  </tr>
  <tr>
    <td class="div1">固定电话:</td>
    <td class="div2"><%=rs("座机")%></td>
    <td class="div2"><div class="div4"><input name="座机" type="text" id="phone" class="input" size="15" onBlur="checkphone(this)"></div>
      <span id="checkphone">座机,请填写区号如:0871-8888888。</span></td>
  </tr>

板凳

<tr>
<td class="div1">居住地址:</td>
<td class="div2"> <%=rs("地区代码")%>&nbsp;</td>
<td class="div2">城市选择:<select class="input1" name="地区代码" id="select1" onChange="GetResult_Load(2,this.value)">
<option value="" selected="selected">请选择</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
城区选择:
<select class="input1" name="select2" id="select2" onChange="GetResult_Load(3,this.value)">
<option value="" selected="selected">请选择</option>
</select><br><br>
小区选择:<select class="input1" name="select3" id="select3" onChange="GetResult_Load(4,this.value)">
<option value="" selected="selected">请选择</option>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;其他选择:
<select class="input1" name="select4" id="select4">
<option value="" selected="selected">请选择</option></select>
<script type="text/javascript">
GetResult_Load(1)
</script></td>
  </tr>
    <tr>
    <td class="div1">详细地址:</td>
    <td class="div2"><%=rs("居住地址")%>&nbsp;</td>
    <td class="div2"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="text2">
  <tr>
    <td><textarea name="居住地址" id="add" cols="60" class="input1" onBlur="checkid(this)"></textarea></td>
  </tr>
  <tr>
    <td><span id="checkadd"></span></td>
  </tr>
  <tr>
    <td></td>
  </tr>
  <tr>
    <td></td>
  </tr>
</table></td>
  </tr>
  <tr>
    <td class="div1">其他联系方式1</td>
    <td class="div2"><%=othern1%>:<%=otherv1%></td>
    <td class="div2"><div class="div4"><select class="input1" name="其他联系方式1">
        <option value="OICQ">OICQ(QQ)</option>
        <option value="Windows Live Messenger">Windows Live Messenger</option>
        <option value="ICQ">ICQ</option>
               <option value="Google Talk">Google Talk</option>
        <option value="Tencent Messenger">TM(Tencent Messenger)</option>
      </select>        <input name="其他联系方式1ID" id="id1" type="text" class="input" size="18" maxlength="30" onBlur="checkid(this)"></div><span id="checkid1"></span></td>
  </tr>
  <tr>
    <td class="div1">其他联系方式2</td>
    <td class="div2"><%=othern2%>:<%=otherv2%></td>
    <td class="div2"><div class="div4"><select class="input" name="其他联系方式2">
        <option value="OICQ">OICQ(QQ)</option>
        <option value="Windows Live Messenger" selected>Windows Live Messenger(msn)</option>
          <option value="Google Talk">Google Talk</option>
        <option value="Tencent Messenger">TM(Tencent Messenger)</option>
      </select>        <input name="其他联系方式2ID" id="id2" type="text" class="input" size="18" maxlength="30" onBlur="checkid(this)"></div><span id="checkid2"></span></td>
  </tr>
  <tr>
    <td class="div1">所属公司</td>
    <td class="div2"><%=cb%></td>
    <td class="div2"><div class="div4"><input name="所属公司" id="companyid" type="text" class="input" size="10" onBlur="checkcompanyid(this)"></div>
        <span id="checkcompanyid"></span></td>
  </tr>
  <tr>
    <td colspan="3" class="div1"></td>
  </tr>
  
  <tr>
    <td class="div1">真实姓名:</td>
    <td class="div2"><%=rs("姓名")%></td>
    <td class="div2"><div class="div4"><input name="姓名" id="name" type="text" class="input" size="18" onBlur="checkname(this)"></div><span id="checkname"></span></td>
  </tr>
  <tr>
    <td class="div1">身份证号:</td>
    <td class="div2"><%=rs("身份证号")%></td>
    <td class="div2"><div class="div4"><input name="身份证号" id="IDcard" type="text" class="input" size="18" onBlur="checkIDcard(this)"></div><span id="checkIDcard"></span></td>
  </tr>
  <tr>
    <td class="div1">生理性别:</td>
    <td class="div2"><%=rs("性别")%></td>
    <td class="div2"><%if isempty(rs("性别")) or isnull(rs("性别")) then%>
    <div class="div1"><select name="性别" id="sex" size="1" class="input1">
        <option value="男">男</option>
        <option value="女">女</option>
        <option value="" selected="selected">请选择</option>
      </select></div>
      <span id="checksex">
      </span>。<%else%>
    <%end if%>    </td>
  </tr>

3 楼

<tr>
    <td class="div1">生日:</td>
    <td class="div2"><%=rs("生日")%></td>
    <td class="div2"><%if isempty(rs("生日")) or isnull(rs("生日")) then%><div class="div1"><input name="生日" type="text" id="birthday" class="input" size="18" onBlur="checkbirthday(this)"></div><span id="checkbirthday">格式:1981-07-02</span><%else%>请联系网站管理员。<%end if%></td>
  </tr>
  <tr>
    <td class="div1">修改原因:</td>
    <td colspan="2" class="div2">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="text2">
  <tr>
    <td>修改原因。</td>
  </tr>
  <tr>
    <td><textarea name="reason" id="reason" cols="60" class="input1" onblur="checkid(this)"></textarea></td>
  </tr>
  <tr>
    <td><span id="checkreason"></span></td>
  </tr>
  </table>  </td>
  </tr>
  <tr><td colspan="3" align="center"><br><input type="submit" value=" 修  改 "></td></tr>
</table></form>

我来回复

您尚未登录,请登录后再回复。点此登录或注册