RT,我用apache,htdocs目录下面有index.php和css.css。
使用chrome4.0浏览器打开index.php时并不能显示css样式,但是刷新一次就可以了。
然后我又用IE8和FF3.6打开,没有问题。请问为什么?index.php头部内容如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>index</title>
</head>