在过去的两天里,我一直在努力让它工作,但收效甚微。也许我对所有嵌套的div都感到困惑,谁知道呢,但是我可以找个人来看看代码并指出正确的方向。
我拥有的:http://landgraff.com/backend/process.html
它应该是什么样子:http://landgraff.com/process.html
我之所以重做这个网站,是因为我在原来的网站上使用了表,我试图摆脱使用表…所以这就是为什么我要重做练习的原因。
以下来自:http://landgraff.com/backend/css/ProcessStylesheet.css

@charset "utf-8";

#bodytext {
    color: #6B6351;
    font-family: arial, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 14pt;
    margin: 35px 0px 0px 30px;
    width: 370px;
}

#logo {
    float: left;
    background: url(../images/logosmall.gif) no-repeat;
    width: 75px;
    height: 152px;
    text-indent: -9999px;
}

#process_title {
    clear: both;
    float: left;
    background: url(../images/process/process_title.gif) no-repeat;
    width: 75px;
    height: 347px;
    text-indent: -9999px;
}

#header {
    float: left;
    background: url(../images/process/header.gif) no-repeat;
    width: 163px;
    height: 26px;
    text-indent: -9999px;
    margin-top: 1px;
}

最佳答案

#bodytext {
color:#6B6351;
font-family:arial,Arial,Helvetica,sans-serif;
font-size:11px;
line-height:14pt;
margin:35px 0 0 80px;
width:395px;
}

#header {
background:url("../images/process/header.gif") no-repeat scroll 0 0 transparent;
height:26px;
margin-left:100px;
margin-top:159px;
text-indent:-9999px;
width:163px;
}

如果你想保留你的标记和类/标识,这是一条路。此外,还必须在副本的最后一行添加标记。
刚开始的时候还可以,很难,祝你好运!

07-24 20:22