【发布时间】:2018-05-02 09:16:26
【问题描述】:
在这里问这个问题之前我尝试了很多。
我正在开发一个名为 5.2 的 android 项目,该项目在 public 文件夹下有一个名为 CSS 的文件夹,其中包含 css.css 文件。 所以级联样式表文件的路径是:
5.2\public\CSS\css.css.
我有一个名为 Gordon 的文件夹,其中包含 index.php。
路径是5.2\resources\views\Gordon\index.php
我的问题 css 效果没有显示。
index.php 文件。
<html>
<head>
<title>
</title>
</head>
<body>
<?php
{{ echo '<link href="{{ asset(CSS/css.css) }}" rel="stylesheet">';
echo '<div class="one"> ';
echo ' Hello CSS ';
echo '</div>' ; }}
?>
</body>
</html>
css.css 文件
.one
{
color:red;
font-type:bold;
}
【问题讨论】: