一个head.htm
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
#br:hover a{
color:red
}
</style>
<title>无标题 1</title>
</head>
<body>下面是包含文件<? include 'head.htm';?>
<span id="br">
<a>fjgjggguigui</a>
</span>
</body>
</html>
hover不起作用。两个文件直接连接一起,去掉include,hover起作用的搞不明白为什么。好像类似的有padding如果这样,那些大型的网站包含怎么起作用嘛哪位知道的,留下你的只字片语,给个提示。。我测试了半天,还是没弄清楚
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
#br:hover a{
color:red
}
</style>
<title>无标题 1</title>
</head>
<body>下面是包含文件<? include 'head.htm';?>
<span id="br">
<a>fjgjggguigui</a>
</span>
</body>
</html>
hover不起作用。两个文件直接连接一起,去掉include,hover起作用的搞不明白为什么。好像类似的有padding如果这样,那些大型的网站包含怎么起作用嘛哪位知道的,留下你的只字片语,给个提示。。我测试了半天,还是没弄清楚
你看看直接放在一起跟include进来生成的HTML源代码有啥区别
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="sdf.css" type="text/css" />
<style>
#bb{
border:1px dashed red;padding-top:100px
}
</style>
<title>无标题 1</title>
</head>
<body>另一个包含文件<? include "head.htm"?>
<input type="text" id="bb" value="fsdf" />
</body>
</html>然后我测试了input的value值不显示 padding的不起作用?晕呀,应该是哪里出了问题,就是找不到呀