![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTML5
alleni123
这个作者很懒,什么都没留下…
展开
-
frameset中的页面退出的问题
当我们使用frameset来构建页面的时候, 会遇到一个问题,就是当我们想通过里面的某个页面的某个链接来退出系统到登录界面的时候, 会另整个frameset保持不变,而只有那个页面跳转回了登录界面。这里详细的把这个环境记录下来以便以后学习。项目构建图如下:[img]http://dl2.iteye.com/upload/attachment/0092/1293/82...原创 2013-12-13 17:56:56 · 765 阅读 · 0 评论 -
html5插入mp4视频文件
如下所示, 全部的文件在压缩包中具体的我也没看, 就试了一下能看视频。[code="html"] html5 videovideo 1 video 2 var config...原创 2013-10-22 16:37:33 · 7282 阅读 · 0 评论 -
document.body.clientHeight返回值为0的解决方案
使用HTML5 DOCTYPE,会出现document.body.clientHeight为0网上查了一下, 貌似有很多个解决方案。1. 使用document.documentElement.clientHeight获取。当使用html5的时候,就会有documentElement在document下。[img]http://dl2.iteye.com/upload/a...原创 2014-04-02 11:32:19 · 670 阅读 · 0 评论 -
使用$(window)[0].innerHeight 代替$(window).innerHeight()或$(window).height()
如下图所示,不知道为什么使用$(window).height()获取的数值与实际需要的数值不符合。console.log($(window).height());console.log($(window)[0].innerHeight);console.log($(window).innerHeight());按说这么小的窗口应该获取200+的px值。但是不论怎么弄...原创 2014-04-01 23:24:30 · 927 阅读 · 0 评论 -
css hover的问题
[code="html"] a:hover{ color:gray; } a:visited{ color:yellow; } ...原创 2014-04-01 13:21:01 · 86 阅读 · 0 评论 -
div里的img宽度不超过div宽度
把img设置为 width:100%.这样如果图片宽度大于div宽度,图片就会被缩放至div同样的宽度原创 2014-03-31 11:06:12 · 3377 阅读 · 0 评论 -
margin-top和top的区别
top要配合position:relative和position:absolute使用。[url]http://stackoverflow.com/questions/4036176/css-top-vs-margin-top[/url]You'd use margin, if you wanted to move a (block) element away from other e...原创 2014-03-27 16:11:04 · 241 阅读 · 0 评论 -
html设置float后没有高度解决
[url]http://www.chinaz.com/design/2008/1024/41932.shtml[/url]2. 使用after伪类这种方法就是对父容器使用after伪类和内容声明在指定的现在内容末尾添加新的内容。经常的做法就是添加一个“点”,因为它比较小不太引人注意。然后我们再利用它来清除浮动(闭合浮动元素),并隐藏这个内容。这种方法兼容性一般,但经过各种 ha...原创 2014-03-27 13:32:04 · 1144 阅读 · 0 评论 -
IE下的li:hover问题解决
当在css中设定li:hover{cursor:pointer;}的时候,在chrome下是没问题的,但是在ie9下却没作用。在网上查了一下,最后修改了文档类型声明,问题就解决了。这里修改为,也就是html5的doctype。...原创 2014-02-19 22:26:33 · 338 阅读 · 0 评论 -
js验证是否有scrollbar
if($(document.body)[0].scrollHeight>$(document.body)[0].clientHeight){ alert(true); }chrome下测试通过。原创 2014-04-27 16:47:07 · 91 阅读 · 0 评论