【问题标题】:This code will not display content on design view on DreamWeaver. Why?此代码不会在 DreamWeaver 的设计视图中显示内容。为什么?
【发布时间】:2023-02-23 01:57:09
【问题描述】:

这是我用可视代码编写的第一个代码。当我切换到 DreamWeaver 设计视图时,页面是空白的。

你能告诉我代码缺少什么吗?

代码:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
body,td,th {
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #020202;
 }
 bo
dy {
     background-color: #D9DDD7;
 }
</style>
<title>Connor Mayer's Student Portfolio</title>
<meta name="keywords" content="Connor Mayer Student Portfolio, student, wake tech, programmer, web developer, cyber security">
<meta name="description" content="My name is Connor Mayer, this page is for displaying contact information.">
<!-- ConnorMayer, CTI110-0006 -->
</head>
<h1>" Get In Touch"</h1>
    <p> "Feel free to contact me anytime via email or phone with the contact information below."</p>
    <ul>
              <li>Phone:<br>
              (919) - 867 - 5309</li>
            </ul>
<body><p>&nbsp;</p>
</body><ul>
              <li>Email:<br>
                <p style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: bold; font-size: 18px;"><a href="mailto:Cmayer@my.waketech.edu"> Cmayer@my.waketech.edu</a></p></li>
            </ul>
            <!-- This file is my own work and I typed everything manually, Mayer-->          
</html>




I have compared it to my landing page code which does show in the design view and cannot find any errors.

【问题讨论】:

  • 那么,对于初学者来说,尝试通过 HTML 验证器运行您的代码。

标签: html syntax syntax-error dreamweaver


【解决方案1】:

首先,尝试将您的代码更改为此(我摆脱了一些混乱、松散和不必要的代码)。

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
body,td,th {
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #020202;
 }
dy {
     background-color: #D9DDD7;
 }
</style>
<title>Connor Mayer's Student Portfolio</title>
<meta name="keywords" content="Connor Mayer Student Portfolio, student, wake tech, programmer, web developer, cyber security">
<meta name="description" content="My name is Connor Mayer, this page is for displaying contact information.">
<!-- ConnorMayer, CTI110-0006 -->
</head>
<body>
<h1>Get In Touch</h1>
    <p>Feel free to contact me anytime via email or phone with the contact information below.</p>
<br>
    <ul>
        <li>Phone:<br>
        (919) - 867 - 5309</li>
    </ul>
<br>
    <ul>
        <li>Email:<br>
        <p style="font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: bold; font-size: 18px;"><a href="mailto:Cmayer@my.waketech.edu">Cmayer@my.waketech.edu</a></p></li>
    </ul>
</body>
            <!-- This file is my own work and I typed everything manually, Mayer-->          
</html>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-05
    • 2017-05-19
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 2017-08-27
    • 2011-07-04
    • 1970-01-01
    相关资源
    最近更新 更多