2012年6月14日
摘要: My idea was to addposition:relativeto the link, in order to allow thespanelement inside to position absolutely respect the parent link. This code has been tested in Ie5.5, Opera7.11 and Mozilla 1.4 and works fine. Solved ie bug adding some z-index, but with the modifications done this technique will 阅读全文
posted @ 2012-06-14 22:46 Romen 阅读(149) 评论(0) 推荐(0) 编辑
摘要: <div id="nowDiv"><script> function show(){ var date = new Date(); //日期对象 var now = ""; now = date.getFullYear()+" ."; //读英文就行了 now = now + (date.getMonth()+1)+" ."; //取月的时候取的是当前月-1如果想取当前月+1就可以了 now = now + date.getDate()+"<br>"; now 阅读全文
posted @ 2012-06-14 22:40 Romen 阅读(2816) 评论(0) 推荐(0) 编辑
摘要: IE中的条件注释一、条件注释简介IE中的条件注释(Conditional comments)对IE的版本和IE非IE有优秀的区分能力,是WEB设计中常用的hack方法。条件注释只能用于IE5以上。如果你安装了多个IE,条件注释将会以最高版本的IE为标准。条件注释的基本结构和HTML的注释(<!– –>)是一样的。因此IE以外的浏览器将会把它们看作是普通的注释而完全忽略它们。IE将会根据if条件来判断是否如解析普通的页面内容一样解析条件注释里的内容。二、条件注释属性gt : greater than,选择条件版本以上版本,不包含条件版本lt : less than,选择条件版本以下版 阅读全文
posted @ 2012-06-14 01:15 Romen 阅读(198) 评论(0) 推荐(0) 编辑