随笔分类 -  html5

html5
摘要:<iframe style="display:none;" name="exportExcelIframe"></iframe> <form id="exportExcelForm" method="post" style="display:none;" target="exportExcelIfr 阅读全文
posted @ 2017-01-17 15:41 he0xff 阅读(1349) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/questions/6063308/touch-css-pseudo-class-or-something-similar 替代touchstart/touchend的一种css方案;手指按下的时候变换样式; (2)css后面用... 样式: wor 阅读全文
posted @ 2016-12-12 23:40 he0xff 阅读(486) 评论(0) 推荐(0)
摘要:(1)document.body.contentEditable=true 就可以修改页面上的文字了。 (2)document.designMode="on" 阅读全文
posted @ 2016-10-14 17:30 he0xff 阅读(195) 评论(0) 推荐(0)
摘要:.a { background-color: #FFFFFF; margin-top: 10px; position: relative; overflow: hidden; display:block;} .a:before { content: " "; position: absolute; 阅读全文
posted @ 2016-06-27 17:05 he0xff 阅读(140) 评论(0) 推荐(0)
摘要:常见写法如下: #以上代码告诉IE浏览器,无论是否用DTD声明文档标准,IE8/9都会以IE7引擎来渲染页面。 #以上代码告诉IE浏览器,IE8/9都会以IE8引擎来渲染页面。 #以上代码告诉IE浏览器,IE8/9及以后的版本都会以最高版本IE来渲染页面。 #以上代码IE=e... 阅读全文
posted @ 2015-12-23 21:21 he0xff 阅读(333) 评论(0) 推荐(0)
摘要:标题 阅读全文
posted @ 2015-12-23 21:20 he0xff 阅读(183) 评论(0) 推荐(0)
摘要:(1)FPS是指画面的帧数FPS指画面每秒传输帧数,通俗来讲就是指游戏和动画或视频的画面数,每秒帧数愈多,所显示的动作就会愈流畅,这个值是越高越好,因为越高代表了你每秒帧数就越多,帧数越多,每秒所刷新的画面就越流畅,这个和显卡和CPU有关(但最主要还是显卡)(2)Reflow 的成本比 Repain... 阅读全文
posted @ 2015-12-23 21:19 he0xff 阅读(417) 评论(0) 推荐(0)
摘要:/* http://meyerweb.com/eric/tools/css/reset/ *//* v1.0 | 20080212 */html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquot... 阅读全文
posted @ 2015-11-17 15:05 he0xff 阅读(199) 评论(0) 推荐(0)
摘要:(1)根据@media 的屏幕宽度(max-width)来查看(转) 或者:@media 1240MinMedia, only screen and (min-width: 1241px) { .bgcolor{ background:gray;... 阅读全文
posted @ 2015-11-17 14:49 he0xff 阅读(330) 评论(0) 推荐(0)
摘要:在线客服 阅读全文
posted @ 2015-11-17 09:34 he0xff 阅读(196) 评论(0) 推荐(0)
摘要:px: (1)任意浏览器的高度默认是16px,1em=16px;那么12.5px=0.75em;10px=0.625em;为了简化font-size的运算;需要在CSS的body中设置font-size为62.5%;这样,12px=1.2em,10px=1em;只需要将原来的px除以10替换就可以; 阅读全文
posted @ 2015-11-17 09:27 he0xff 阅读(203) 评论(0) 推荐(0)
摘要:(1)通过display:absolute;设置 (2)通过css3属性设置 test 此时是p元素垂直,左右居中;(3)放小元素;div 垂直居中;加上margin:0 auto;左右居中; 111 (4)通过html5的transform属性设置 阅读全文
posted @ 2015-11-16 10:02 he0xff 阅读(210) 评论(0) 推荐(0)
摘要:1.基于html5的各类API的优秀设计,比如:从video元素中抓取的帧可以显示在canvas里面,用户单击canvas即可播放这帧的应用;2.Modernizr 一个javascript库,它提供了非常先进的html5和css3检测功能;它是检测浏览器支持某些特性的最佳工具;3.canvas本质... 阅读全文
posted @ 2015-07-27 16:58 he0xff 阅读(856) 评论(0) 推荐(0)