【发布时间】:2021-01-27 11:22:33
【问题描述】:
我使用 VS Code 进行 HTML 编辑,但是当我输入标签时,它不显示它的属性,甚至当我添加我想要的属性时,它也无法识别它。 我做了以下,但没有一个工作:
1-我安装了相关的扩展(HTML CSS Support、HTML Snippets、HTML Boilerplates 等)。 2-添加标签后,按 Ctrl+Space。 3-重新启动我的机器。 4-重新安装VS代码。
(我在下面输入了css、html代码,我的css文件名为“style post.css”,在我的HTML文件所在的文件夹中)。
我尽我所能,如果有人可以指导我,我会很高兴。
h2.head1{
color:red ;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Post</title>
<link rel="stylesheet" href="style_post.css">
</head>
<body>
<h1> Scrambled Eggs </h1>
<p>
eggs are one of my favorite foods.here is recipe for deliciously rich scrambled eggs.<br>
</p>
<h2 class:"head1">Ingredients</h2>
<ul>
<li>
2eggs
</li><li>
1 tbs butter
</li><li>
2 tbs cream
</li>
</ul>
<h2>Method</h2>
<ol>
<li>
Melt butter in a frying pan over a medium heat.
</li><li>
Gently mix the eggs and cream in the bowl.
</li><li>
once bottle has melt add cream and eggs.
</li><li>
Using the spatula fold the eggs from the edge of the pan to the center every 20 secend(as if you are making an omelette)
</li><li>
When the eggs are still moist remove from the heat(it will continue to cook on the plate until served)
</li>
</ol>
</body>
</html>
【问题讨论】:
标签: html css visual-studio-code vscode-settings