摘要: html中的placeholder属性很好用,但是不支持神奇的IE,下面是解决方法:先给出 Demo// This adds 'placeholder' to the items listed in the jQuery .support object.jQuery(function() { jQuery.support.placeholder = false; test = document.createElement('input'); if('placeholder' in test) jQuery.support.placeholder 阅读全文
posted @ 2013-07-17 15:36 华生_ 阅读(350) 评论(0) 推荐(0) 编辑
摘要: webkit(开源)内核浏览器包括 chrome 、safari、iPhone/Android上默认的浏览器也是基于webkit的,因为webkit是开源的,所以国内也有基于webkit内核的浏览器,例如:360极速、遨游3、搜狗极速等。另外还有浏览器内核还有Trident(IE内核)、Gecko(firefox内核)、Presto(Opera内核)Demo下面是代码: 1 html { 2 overflow: auto; 3 } 4 body { 5 position: absolute; 6 top: 0; 7 left: 0; 8 bottom: 0; 9 right: 0;10 ove 阅读全文
posted @ 2013-07-09 15:52 华生_ 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 学习了一个效果,当滚动条滚动到页面底部时,弹出一个元素Demohtml:1请向下滚动页面↓2345close6华生_7分享一些前端的笔记_http://www.cnblogs.com/jmjweb8css:初始化,主要是把#slidebox 固定在页面的底部1#slidebox{2width:400px;height:100px;overflow:hidden;padding:10px;background-color:#fff;border-top:3pxsolid#159;position:fixed;left:0;bottom:0px;_position:absolute;margin- 阅读全文
posted @ 2013-06-27 11:07 华生_ 阅读(1376) 评论(0) 推荐(0) 编辑
摘要: 博客开通了,Holle world这只是一个demo.admission_procedure.T,.cantact_us.T,.news.T,.activities.T,.sub_menu2.T{background:url(../img/icon_sprite.png)no-repeat0-129px}.Th3{font-size:22px;color:#fff;margin-left:15px;line-height:40px}.admission_procedure.C,.cantact_us.C,.news.C,.activities.C,.sub_menu2.C{width:100% 阅读全文
posted @ 2013-06-26 12:16 华生_ 阅读(181) 评论(0) 推荐(0) 编辑