用的是smarty框架,有个页面上边界什么设置都不能设0;在浏览器里查看网页html源码一切很正常的:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh" xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Favicon -->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<!--title-->
<title> - 银彩通</title>
<!--description-->
<meta name="description" content=" - 银彩通" /><meta name="keywords" content=" - 银彩通" />
<!--css-->
<link href="/templates/yinct/css/style.css" rel="stylesheet" type="text/css" />
<!--js--><script src="/plug-in/commonJS/jquery.min.js" type="text/javascript">
</script><script src="/plug-in/commonJS/common.js" type="text/javascript">
</script>
</head>
<body>在浏览器里,把网页另存为本地html文件,再查看html源码,就发现不对劲了,问题就出现在这里,<head><body>已经跑到头部去了,那里title属性和meta属性,ccs已经移位到body里,而且看是content="IE5.0":
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0054)http://www.yinct.com/trendnews/index/id-trendnews.html -->
<HTML>
<HEAD><
META content="IE=5.0000" http-equiv="X-UA-Compatible">
<TITLE>- 银彩通</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16437"></HEAD>
<BODY>
<!-- Favicon -->
<LINK rel=icon type=image/x-icon 
href="/favicon.ico"><LINK rel="shortcut icon" type=image/x-icon 
href="/favicon.ico">
<!--title-->
<!--description-->