在XHTML1.0中使用Body样式的一个滚动条问题
替换前两行成<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=gb2312" />
<title>Test</title>
</head>
<head>
<style type="text/css">
body{
margin:0px;
background:#799AE1;
font:normal 12px 宋体;
scrollbar-face-color:#799AE1;
scrollbar-highlight-color:#799AE1;
scrollbar-shadow-color:#799AE1;
scrollbar-darkshadow-color:#799AE1;
scrollbar-3dlight-color:#799AE1;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#AABFEC;
vertical-align:top
}
</style>
</head>