1

谁能帮我修复 HTML 代码中的错误。在第 9 行我有一个错误。

Fatal Error: Open quote is expected for attribute "{1}" associated with an  element type  "border".

这段代码是这样的:

<!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>
        <title>some title here</title>
        <link href="../design.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="background-image:url(../Pictures/background.png)">
        <table border=0 width="100%" cellpadding=0 cellspacing=0>
            <tr>
                <td>
                    <p align="left" id="textd"><img src="../Pictures/iconeD.png" alt="D Logo" /> D</p>
                </td>
            </tr>
        </table>
        <br></br>
        <table bgcolor="#e7ebff" border=0 width="100%" cellpadding=0 cellspacing=0>
            <tr valign=top>
                <td></td>
            </tr>
        </table>
    </body>
</html>

非常感谢你

4

2 回答 2

1
<!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>
        <title>some title here</title>
        <link href="../design.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="background-image:url(../Pictures/background.png)">
        <table style="border:0px;width:100%;" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <p align="left" id="textd"><img src="../Pictures/iconeD.png" alt="D Logo" /> D</p>
                </td>
            </tr>
        </table>
        <br></br>
        <table style="border:0px;width:100%;background-color:#e7ebff;" cellpadding="0" cellspacing="0">
            <tr valign=top>
                <td></td>
            </tr>
        </table>
    </body>
</html>
于 2012-11-21T08:54:58.683 回答
0

试试这个:

<table border="0" width="100%" cellpadding="0" cellspacing="0">

或像这样使用 css:

table{
   border:none;
   width: 100%;
   border-spacing:0;
   border-collapse:collapse;
}
于 2012-11-21T08:46:00.980 回答