【发布时间】:2016-11-14 03:45:18
【问题描述】:
我已经开始使用php了。并遇到了第一个问题,我无法摆脱。我希望我的index.php 带有此代码(在头部):
<head>
<?php
require 'php/main/head.html';
?>
</head>
使用此代码访问我的head.html:
<link href="../../style/style.css" rel="stylesheet" type="text/css" />
<link href="../../style/fonts.css" rel="stylesheet" type="text/css">
<link href="../../style/responsive.css" rel="stylesheet" type="text/css">
<link href="http://www.mike-kaufmann.de/global/current_year.css" rel="stylesheet" type="text.css">
<link href="../../img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
// and more code..
第一个链接应该“通常”从style.css 获取信息,但它不需要任何东西。好像走错了路。
css 中的代码应该对index.php 中的元素做一些边距;但我之前说过,它什么都不做。
我现在的问题是:如何/我必须做什么才能访问我的 style.css;
如果代码难以阅读,您可以下载并自行测试: Dropbox-link 或在我的Github Repo 上查看并在那里上传一些更改。
问题:我读到包含功能让用户每次都重新加载网站。意味着它不使用缓存。真的吗?如果是,我可以使用什么来获得良好的网络性能?
感谢所有回答。
问候迈克。 :)
【问题讨论】: