随笔分类 -  Web标准

CSS圆角菜单
摘要:.bBox{width:300px;}.bBox-t1,.bBox-t2,.bBox-b1,.bBox-b2{height:1px;overflow:hidden;margin:0px;}.bBox-t1{border:0px;margin:0px2px0px1px;}.bBox-t2{border-width:0px1px;border-style:solid;margin-right:1px;}.bBox-offset{margin:0px;border:0px;}.bBox-body{border-width:0px1px;border-style:solid;margin-right: 阅读全文
posted @ 2011-04-28 13:33 雨季 阅读(363) 评论(0) 推荐(0)
DIV定位属性图解
摘要:网页可见区域宽: document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高: document.body.offsetHeight (包括边线的宽);网页正文全文宽: document.body.scrollWidth;网页正文全... 阅读全文
posted @ 2009-05-05 09:40 雨季 阅读(365) 评论(0) 推荐(0)
RSS 2.0规范
摘要:RSS 2.0规范channel部分title 频道名称 必须link 频道的URL 必须Description 频道的描述 必须language 频道文章所用语言 可选copyright 频道版权说明 可选managingEditor 管理者的email 可选webMaster 网站管理员email 可选pubDate 频道发布日期 可选 (注意时间必须是严格符合RFC-822)lastBuil... 阅读全文
posted @ 2009-05-05 09:35 雨季 阅读(245) 评论(0) 推荐(0)
下拉菜单如何定位DIV
摘要:obj指一个html控件obj.offsetTop 指 obj 距离上方或上层控件的位置,整型,单位像素。obj.offsetLeft 指 obj 距离左方或上层控件的位置,整型,单位像素。obj.offsetWidth 指 obj 控件自身的宽度,整型,单位像素。obj.offsetHeight 指 obj 控件自身的高度,整型,单位像素。event指事件源,这里指鼠标event.clientX... 阅读全文
posted @ 2009-05-05 09:15 雨季 阅读(840) 评论(0) 推荐(0)
Ajax应用实例-显示影片描述信息
摘要:鼠标悬停在片名上时显示其详细信息在效果如下图所示:表DVD:CREATE TABLE [DVD] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [Name] [char] (10) COLLATE Chinese_PRC_CI_AS NOT NULL , [Description] [nvarchar] (100) COLLATE Chinese_PRC_CI_A... 阅读全文
posted @ 2009-04-10 09:44 雨季 阅读(230) 评论(0) 推荐(0)
CSS打印控制分页及隐藏页面部分区域.
摘要:CSS打印控制分页及隐藏页面部分区域. 看看 表头 第1页 这样的报表 对一般的要求就够了。 表头 第2页 看到分页了吧 这样的报表 对一般的要求就够了。 ... 阅读全文
posted @ 2009-03-30 11:28 雨季 阅读(1268) 评论(0) 推荐(0)
div水平垂直居中显示
摘要:div水平垂直居中显示 绝对定位div,top和left设置为50%. margin-top为 1/2 * height;margin-left为 1/2 * width .center{ width:200px; height:150px; background-color:#0066CC; position:absolute;top:50%;left:50%; margin-top:... 阅读全文
posted @ 2009-03-30 10:41 雨季 阅读(208) 评论(0) 推荐(0)
火狐中使用event对象
摘要: 阅读全文
posted @ 2009-03-30 10:39 雨季 阅读(659) 评论(0) 推荐(0)
IIS伪静态页面设置方法
摘要:具体的设置方法见压缩包内说明文档. httpd.ini配置方法 (每个大括号代表一个url参数,其中用正则表达式匹配.) RewriteRule ^(.*)/([a-z0-9\-\_]+)$ $1/Default\.aspx\?id=$2 # http://localhost/Text 就会等同于 http://localhost/Default.aspx?id=Text # RewriteR... 阅读全文
posted @ 2009-03-24 15:08 雨季 阅读(207) 评论(0) 推荐(0)
div模式窗口
摘要:转自:http://hi.baidu.com/xfwql/blog/item/5b7d96437575951172f05d4d.html 阅读全文
posted @ 2009-03-24 14:54 雨季 阅读(240) 评论(0) 推荐(0)
CSS 兼容IE6/IE7/FF
摘要:完美兼容IE6/IE7/FF的通用方法 关于CSS对各个浏览器兼容已经是老生常谈的问题了, 网络上的教程遍地都是.以下内容没有太多新颖, 纯属个人总结, 希望能对初学者有一定的帮助. 一、CSS HACK 以下两种方法几乎能解决现今所有HACK. 1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明... 阅读全文
posted @ 2009-03-24 14:53 雨季 阅读(212) 评论(0) 推荐(0)