【问题标题】:(Notepad++) HTML Preview not available(Notepad++) HTML 预览不可用
【发布时间】:2018-10-19 15:14:34
【问题描述】:

我正在做一个课堂项目,我需要使用 HTML 预览来查看我目前的工作。每次尝试时,我都会看到一个空白窗口,提示预览不可用。

<!DOCTYPE html>
<html>
<head>
<title>Identity Theft</title>
</head>
<body style=background-color:lightsteelblue>
    <h1 style=text-align:center;color:blue> Protecting against identity theft</h1>
    <hr style=background-color:white size=5px>
    <div style="font-family;Arial">
        <h2> Keping Your Personal Information Secure Online</h2>
        <ol><li> Be aklert to impersonators</li></ol>
        <li> Safely dispose of personal information</li>
        <li>encrypt your data</li>
        <li> Keep passwords private</li>
        <li> Don't overshare on social networking sites</li>
    <h2> Keeping your devices secure</h2>
    <ul><li> Use Security Software</li>
    <li>lock up your laptop</li>
    <li>Be Wise about wi-fi</li>
    <li> Avoid phishing emails</li>
    <li> Read privacy policies</li></ul>
</div>
<p>Source:<a href="https:www.consumer.ftc.gov/article/0722-how-keep-your-personal-information-secure#online"> Federal Trade Commission</a></p>
    <div align ="center">
        <h3> Report Crimes or Suspicious Activity</h3>
        <table  border ="2">
        <tr>
            <th>Activity</th> 
            <th>Contact</th>
        </tr>
        <tr>
            <td>Identity Theft</td>
            <td><a href="https://www.identitytheft.gov/"> The Federal Trade Commission </a></td>
        </tr>
        <tr>
            <td> Internet Crime </td>

    </body>
</html>

【问题讨论】:

  • 您可以随时保存文件并在浏览器中打开文件。
  • 首先,看起来您的样式属性值周围缺少引号。 style="style: 东西"
  • @Dan Farrel。它所做的只是用代码打开一个窗口
  • 为我工作。你如何运行它?如果要在 Firefox 中打开,请键入 Ctrl + Alt + shift + X。
  • @ toto 我保存退出并尝试右键单击用chrome打开。我会试试你的做法。

标签: html class notepad++


【解决方案1】:

查看您键入时动态呈现的 HTML 文件。

  1. 插件 > 插件管理器,安装插件Preview HTML

  2. 关注您的 HTML 文件。

  3. 选择插件 > 预览HTML > 预览HTML

  4. 窗口现在应该显示 HTML 文件(如果没有,请在一个简单的示例上进行测试)。保持窗口浮动或停靠,例如到 Notepad++ 窗口的底部。

  5. 在您的 HTML 代码中输入至少一个字符以查看预览。

【讨论】:

  • 仅作记录,此插件仅限于 Internet Explorer 引擎,该引擎严重过时并且缺乏对新 HTML、CSS 和 JavaScript 功能的支持。如果您打算使用它来测试真实网站,请小心。
猜你喜欢
  • 2018-04-28
  • 2017-10-17
  • 2013-01-25
  • 1970-01-01
  • 2020-12-03
  • 1970-01-01
  • 2021-11-27
  • 2010-09-06
  • 2015-08-06
相关资源
最近更新 更多