摘要: 引用http://www.w3cfuns.com/thread-5593954-1-1.htmlCSS1.overflow-x属于 CSS2 还是 CSS3 overflow-x 属于CSS2。2.请列举几种可以清除浮动的方法(至少两种) 在父级元素使用overflow:hidden;但是在ie6 上有CSS Hack 在父级元素使用float; 使用clear: both; 我一般这样使用 .cf:before, .cf:after{content:"\0020";display:block;height:0;overflow:hidden;} .cf:after{cle 阅读全文
posted @ 2013-07-07 22:11 聪哥、有点恾 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 更多详情请看css制作流程及标准http://qianduan.cc/forum.php?mod=viewthread&tid=19&fromuid=4747 阅读全文
posted @ 2013-06-20 10:50 聪哥、有点恾 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 因为公司网站类型是预订机票酒店及各方面的票业务,导致很多地方都有都需要这个功能,面临网站以后的重新开发,特地为之后做准备,在网友“刀刀”的帮助下,把例子和大家分享下。效果图如下分享源码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">& 阅读全文
posted @ 2013-05-10 10:02 聪哥、有点恾 阅读(148) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2013-05-07 09:24 聪哥、有点恾 阅读(772) 评论(0) 推荐(1) 编辑
摘要: 看了下妙味课堂的视频,跟着我也做了一个自定义表单控件妙味课堂的视频讲解地址:http://player.youku.com/player.php/sid/XMjgyNDc1Njg0/v.swf<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"&g 阅读全文
posted @ 2013-05-06 15:54 聪哥、有点恾 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 我们知道select标签在各个浏览器中的属性和各浏览器的支持各有些不同,从而造成select选择框在各浏览器的显示有不同,下面我们通过对主要 外形CSS属性的支持,打造全兼容select。 我对select的height、padding、line-height分别利用控制变量的方法写了个DEMO在各浏览器上测试三种情况:height.100.padding.0、height.no.padding.100、no.height.no.padding,结果如 链接图片各浏览器DEMO外观我们可以得出以下研究属性。ie6ie7ie8ie9ffchsfop默认高度22px22px19px20px19px 阅读全文
posted @ 2013-05-06 11:52 聪哥、有点恾 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 题目的意思就是用三个div实现这个图,要求全兼容不能用定位来实现。<style> *{ margin:0px; padding:0px;} div{ background:#FC6; margin:10px; width:200px; float:left; display:inline;} .box1{ height:200px;} .box2{ height:200px; margin:220px 0px 0px -210px;} .box3{ height:410px;}</style><body> <div class="box1&q 阅读全文
posted @ 2013-04-23 14:12 聪哥、有点恾 阅读(224) 评论(0) 推荐(0) 编辑
摘要: <input type="text" id="email" />用 js 或者 jquery 实现验证一个邮箱地址。<script> window.onload = function (){ var email = document.getElementById("email"); email.onblur = function(){ //下面这个正则表达式的意思就是 // \w+ 意思是一串字符串或者下划线或者数字 //[0-9a-z]+ 意思是一串数字或者字母 //[a-z]+ 意思是一串 a-z 的字母 阅读全文
posted @ 2013-04-18 11:01 聪哥、有点恾 阅读(199) 评论(0) 推荐(0) 编辑