打印

问几个关于标准的问题

复制内容到剪贴板
代码:
<select name="menu1" onchange="gotoPage(this.options[this.selectedIndex].value)">
        <option selected="selected">转到</option>
        <option value="1">第1页</option>
        <option value="2">第2页</option>
      </select>
校验结果是
Level of XHTML: XHTML 1.0 Transitional
there is no attribute onchangefor this element (in this HTML version)

select的onchange属性怎么有错呢?

还有一个:我的页面中有表格定位,怎么也能通过校验啊?!
Stop preparing right away !
复制内容到剪贴板
代码:
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Proj.PDC</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>
<frameset id="topframeset" rows="80,100%" cols="*" border="0" framespacing="0" frameborder="no">
<frame name="topframe" src="topFrame.htm" scrolling="no" border="0" framespacing="0" frameborder="no" noresize />
<frame name="downFrame" src="downFrame.htm" border="0" framespacing="0" frameborder="no" />
<noframes>
<body>
<h1>此网页使用了框架,但您的浏览器不支持框架。</h1>
</body>
</noframes>
</frameset>
</html>
用a real validator校验结果
Results for D:\site\pdc\index.htm
Level of XHTML: XHTML 1.0 Frameset

Errors
D:\site\pdc\index.htm, Line 9, Character 58:
there is no attribute border for this element (in this HTML version)

D:\site\pdc\index.htm, Line 9, Character 75:
there is no attribute framespacing for this element (in this HTML version)

D:\site\pdc\index.htm, Line 9, Character 91:
there is no attribute frameborder for this element (in this HTML version)

D:\site\pdc\index.htm, Line 10, Character 65:
there is no attribute border for this element (in this HTML version)

D:\site\pdc\index.htm, Line 10, Character 82:
there is no attribute framespacing for this element (in this HTML version)

D:\site\pdc\index.htm, Line 10, Character 112:
the name and vi delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified

我如果把frameborder 和framespacing 属性去掉的话,框架会有个边出现,怎么解决啊?!
Stop preparing right away !
我定义了一个div的高度为3px,可是显示结果却不是3px,向div内插入一个1x1 的 spacer.gif图片后,高度正常了,这不和表格定位时一样吗?怎么回事?!
Stop preparing right away !
不知道是否可以用expression代替onchange?

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
crystal在上个帖子中说
引用:
我定义了一个div的高度为3px,可是显示结果却不是3px,向div内插入一个1x1 的 spacer.gif图片后,高度正常了,这不和表格定位时一样吗?怎么回事?!
ie bug
div{overflow: hidden;height: 3px;}
不用加图片
I follow W3C Web Content Accessibility Guidelines.
Fifty Studio  

TOP

crystal在上个帖子中说
引用:
复制内容到剪贴板
代码:
<select name="menu1" onchange="gotoPage(this.options[this.selectedIndex].value)">
        <option selected="selected">转到</option>
        <option value="1">第1页</option>
        <option value="2">第2页</option>
      </select>
校验结果是
Level of XHTML: XHTML 1.0 Transitional
there is no attribute onchangefor this element (in this HTML version)

select的onchange属性怎么有错呢?

还有一个:我的页面中有表格定位,怎么也能通过校验啊?!
这个没错啊,看下面,以通过.

 提示:您可以先修改部分代码再运行
表格用来放数据的,能通过的,布局须用div.
可参考一下:http://gzh53.go.nease.net/tutorials5.html
I follow W3C Web Content Accessibility Guidelines.
Fifty Studio  

TOP