我用php构建了自己的模板系统.一个简短的例子只是为了解释我的问题:
<!DOCTYPE HTML>
<html lang="de">
<head>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
</head>
<body>
<?php include('body.html'); ?>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
现在,当我用Netbeans打开body.html文件时
<div class="content">
Hello
</div>
Run Code Online (Sandbox Code Playgroud)
Netbeans说:没有找到类内容
是否可以将css文件分配给html文件,以便Netbeans找到该类?
小智 0
未找到课程内容:
**This means, the class named "content" is not defined or not found in HTML/CSS file(s).**
Run Code Online (Sandbox Code Playgroud)
因此,要么创建一个新的 CSS 文件并从 html 页面进行引用,要么使用标签在 body.html 本身中定义 CSS 定义。

| 归档时间: |
|
| 查看次数: |
3139 次 |
| 最近记录: |