0

嗨,我已经为客户完成了一个网站,并在包括 IE8 在内的所有最新浏览器上对其进行了测试,并且在其中看起来不错。我还针对不同的分辨率对其进行了测试,这两个看起来不错。

这是网站:

首页

你应该看的是大文本和表格都应该在中心对齐。我的客户给我发了一张照片,显示表格以某种方式延伸到容器之外。他说它来自 chrome 但对我来说 chrome 看起来不错.

这是我使用的标记:

  <section>
          <h1>Build your professional page and connect with people you need to <span> achieve your goals </span></h1>
          <form>
              <label for="name"><span>PAGE NAME</span><input type="text" value="What do you seek?" name="name" id="name"/></label>
              <img src="img/frontpage/and.png" alt="and"/>
              <label for="password"><span>PASSWORD</span><input type="text" value="What do you seek?" name="password" id="password"/></label>
              <input type="submit" value="Create Page" id="press"/>
          </form>
      </section>

这是CSS:

div#frontpage section{
    width:700px;
    margin:0 auto;
    margin-top: 50px;
    margin-bottom: 80px;
}
div#frontpage section h1{
    font-size:48px;
    text-align: center;
    color:#060000;
}

div#frontpage section form{
    margin-top: 65px;
    position:relative;
}
div#frontpage section form label{
    display:inline-block;   
}
div#frontpage section form label span{
    display: block;
    color:#75aed2;
    font-size:11px;
    font-weight: bold;
    margin-bottom: 5px;
}

div#frontpage section form input{
    width:190px;
    padding:8px 5px;
    color:#d5d5d5;
    font-weight: bold;
    border:1px solid #bbbbbb;
    font-size: 13px;
    background-color: white;
}
div#frontpage section form label:first-child{
   margin-right:57px;
}
div#frontpage section form img{
    position:absolute;
    top:20px;
    left:226px;
}
div#frontpage section form input#press{
   margin-left: 40px;
   background-color: #1f70b3;
   border:none;
   color:white;
   cursor: pointer;
   padding: 12px 5px;
}
div#frontpage section form input#press:hover{
    background-color: #2380ce;
}

如果我的 css 中有问题将表单扩展到它的容器之外,我找不到它。但这就是我的客户正在使用的 chrome 版本中发生的情况。如何解决这个问题?文本和表单框pe应该完全对齐

编辑:新图片链接imagelink

4

1 回答 1

1

正如这里的人评论的那样,我看不到您提交的图像,因为它引发了“错误:黑客试图非法下载投标附件”。

但是,如果您的客户在 IE8(或旧版浏览器)中遇到问题,则可能是由于您使用了<section>标签造成的。如果没记错的话,IE8 不支持 HTML5。尝试将其更改为 a<div>并查看它是否有效。

于 2012-07-31T21:46:58.393 回答