You need to sign in to view this topic
This topic created in 4980 days ago, the information mentioned may be changed or developed.
声明用的是<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
而js代码用的是http://www.lanrentuku.com/js/scroll-141.html#
他们2个发生了冲突,去掉声明js就可以用了,但是网页总要有声明吧,现在该怎么办呢
8 replies • 1970-01-01 08:00:00 +08:00
 |
|
<div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff> ---> <div id=demo style=overflow:hidden;height:139px;width:232px;background:#f4f4f4;color:#ffffff>
|
 |
|
转 真的是,现在叫一个人写一个空白的html就可以知道他前端水平去到哪里了啊:1.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"什么的开头负分滚粗 2.<!DOCTYPE html> 开头算有点追求 3.用什么html5-boilerplate Modernizr Normalize CSS-reset的可以拿高分!
|
 |
|
@ foru17 额 这个有点过了吧 我也喜欢doctype html 简单 偷懒 呵呵
|
 |
|
这个是什么意思???
|
 |
|
@ jasontse 这个可不仅仅是简单 这么一点原因。重要的是这种写法在绝大多数浏览器中可以有好的渲染方式。 其它没有任何一种写法能比得过它。 w3ctech里面有各种写法的测试结果
|