【发布时间】: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打开。我会试试你的做法。