随笔分类 -  css

iframe 的水平滚动条
摘要:iframe问题2008-01-2216:37******显示iframe内容 XHTML1.0Transitional标准不能显示 <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="http://www.w3.org/1999/xhtml"> 父页面:修改为 HTML4.01Transitional标准 &l 阅读全文

posted @ 2011-02-23 11:21 jianshaohui 阅读(23152) 评论(0) 推荐(1)

正则表达式的3种匹配模式
摘要:则表达式是处理字符串的常用工具。在C#中,我们一般使用Regex类来表示一个正则表达式。一般正则表达式引擎支持以下3种匹配模式:单行模式(Singleline)、多行模式(Multiline)与忽略大小写(IgnoreCase)。1. 单行模式(Singleline)MSDN定义:更改点 (.) 的含义,使它与每一个字符匹配(而不是与除 \n 之外的每个字符匹配)。使用单行模式的典型场景是获取网页... 阅读全文

posted @ 2010-08-25 23:01 jianshaohui 阅读(1012) 评论(0) 推荐(0)

js 以及 css压缩(常用的js插件(url))
摘要:http://blog.lixiphp.com/online-seo-html-css-js/http://www.cssdrive.com/index.php/main/csscompressor/ css压缩http://javascriptcompressor.com/ js压缩http://www.radys.cn/article.asp?id=77 js插件http://coffeescripter.com/code/ad-gallery/ 相册插件http://topic.csdn.net/u/20100705/09/d270754c-6f5d-4864-84b2-5d4013ca 阅读全文

posted @ 2010-08-17 14:03 jianshaohui 阅读(372) 评论(0) 推荐(0)

jquery 的ajax分页,修改插件(因为插件的放到ie会出错)
摘要:js代码(function($) { $.fn.extend({ ajaxPager: function(options) { var defaults = { startPage: 1, PagesCount: 10, ChangeSiteEvent: null, ShowFirstLast: false, ShowGoBack: true }; var options = $.extend(d... 阅读全文

posted @ 2010-08-13 15:16 jianshaohui 阅读(289) 评论(0) 推荐(0)

网页图片显示错误,显示默认图片
摘要:function showimg(ele) { ele.src = "http://cm.aqioo.com/Styles/Expert/images/default120.gif";}<img cg width="100" height="100" alt='<%= model.model.Topic %>' src='<%=imgpath+"/"+model.model... 阅读全文

posted @ 2010-08-12 12:10 jianshaohui 阅读(306) 评论(0) 推荐(0)

CSS的优先级特性Specificity
摘要:如果同个元素有两个或以上冲突的CSS规则,浏览器有一些基本的规则来决定哪一个非常特殊而胜出。  它可能不像其它那么重要,大部分案例你不需要担心冲突,但大型而且复杂的CSS文件,或有很多CSS文件组成的,可能产生冲突。  选择器一样的情况下后面的会覆盖前面的属性。比如:p { color: red; }p { color: blue; }p元素的元素将是蓝色,因为遵循后面的规则。  然而,你不可能经... 阅读全文

posted @ 2010-07-29 17:02 jianshaohui 阅读(310) 评论(0) 推荐(0)

flash挡住图片
摘要:1、加入 <param name="wmode" value="transparent" />2、加入 <embed src="YourFlash.swf" wmode="transparent" ... ></embed>参考http://www.artery.cn/news/WEBbiaozhunhua/2009-06-14/197.html源代码 阅读全文

posted @ 2010-07-19 23:11 jianshaohui 阅读(337) 评论(0) 推荐(0)

css filter
摘要:<style>#idParentDIV{width:100%;height:80px;padding:6px;background-color:buttonshadow;}#idDIV{width:80%;height:40px;background-color:#FF6633;color:#FFFFFF;padding:6px;}#idCodeDiv{width:80%;paddin... 阅读全文

posted @ 2010-07-14 14:00 jianshaohui 阅读(227) 评论(0) 推荐(0)

公用js
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><body xmlns="http://www.w3.org/1999/xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><img width='77' height='5' src='chrome://livemargin... 阅读全文

posted @ 2010-07-13 15:49 jianshaohui 阅读(342) 评论(1) 推荐(0)

共用js
摘要:function addEvent(obj, evType, fn){if (obj.addEventListener){ obj.addEventListener(evType, fn, false); return true;} else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r;} else { return false;}}function removeEvent(obj, evType, fn, useCapture){ if (obj.removeEventL 阅读全文

posted @ 2010-07-12 21:48 jianshaohui 阅读(229) 评论(0) 推荐(0)

javaScript 获取窗口的高度和宽度
摘要:javaScript获取窗口的高度和宽度网页可见区域宽:"+ document.body.clientWidth; 网页可见区域高:"+ document.body.clientHeight; 网页可见区域宽:"+ document.body.offsetWidth +" (包括边线和滚动条的宽)"; 网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽... 阅读全文

posted @ 2010-07-09 00:02 jianshaohui 阅读(249) 评论(0) 推荐(0)

js 获取鼠标的位置(兼容火狐与ie)用了jquery 进行简化操作,但获取鼠标的是纯js,加上<!DOCTYPE 标准
摘要:<!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 runat="server"&... 阅读全文

posted @ 2010-07-09 00:00 jianshaohui 阅读(5093) 评论(0) 推荐(0)

js刷新页面
摘要:js刷新页面 方法大全本文转载于:http://www.jb51.net/article/14397.htm一、先来看一个简单的例子: 下面以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说明如何做。 frame.html 由上(top.html)下(bottom.html)两个页面组成,代码如下: 1<!DOCTYPEHTMLPUBLIC"-/... 阅读全文

posted @ 2010-07-08 19:02 jianshaohui 阅读(211) 评论(0) 推荐(0)

仿淘宝星级评分效果
摘要:<!--# 星级评分# star:value = 分数--><div class="shop-rating"><span class="title">物流公司的服务:</span><ul class="rating-level" id="stars2"><li><a class="one-star" star:value... 阅读全文

posted @ 2010-07-06 16:08 jianshaohui 阅读(1951) 评论(0) 推荐(0)

常用js
摘要:1.常用函数function(evt) { var e = (evt) ? evt : window.event; if (window.event) { e.cancelBubble = true; } else { e.stopPropagation(); }阻止事件function(ele, e, call) { if (window.addEventListener) ele.addEventListener(e, call, false); else ele.attachEvent("on" + e, call); }添加事件$("#addClassName").keydown(fu 阅读全文

posted @ 2010-06-30 16:55 jianshaohui 阅读(220) 评论(1) 推荐(0)

常用css
摘要:一、设置背景图片位置.menubg{background: url(images/con_i_35.gif) no-repeat 5px 3px;padding-left:30px;}二、在ie6下重影解决 1.去掉注释 2.一般重影的父容器都设置了float属性,那么你只需要在父容器后面加<br/>则可以解决掉 还有其他方法,但我觉得2比较不错三、不换行 overflow:hidden; white-space:nowrap; text-overflow:ellipsis;width:100px;四、强制换行.divwrap{white-space:normal;word-bre 阅读全文

posted @ 2010-06-17 14:28 jianshaohui 阅读(145) 评论(1) 推荐(0)

导航