上一页 1 2 3 4 5 6 ··· 8 下一页
<!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- Read More
posted @ 2013-01-31 11:54 vincent_ds Views(515) Comments(0) Diggs(0) Edit
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">#department { float: left; display: inline; height: 38px; width: 198px; background: #fff; color: #565656; font-size: 14px; margin-right: 6px; Read More
posted @ 2013-01-06 11:04 vincent_ds Views(1055) Comments(0) Diggs(0) Edit
<html><style>.hide{display:none;}</style><script type="text/javascript" src="jquery-1.6.1.min.js"></script><script type="text/javascript">$(document).ready(function() { $("div.down").click(function(e) { e.stopPropagation(); Read More
posted @ 2013-01-05 10:25 vincent_ds Views(7091) Comments(1) Diggs(0) Edit
在Web上显示图片,通常都会有图片显示比例问题,如果不给<img />限制width和height,那么如果图片大了就会将整个页面挤乱,图片小了又会使图片失真。 1、预先定义好图片显示的标准宽度和高度。2、如果图片的大小超过了标准定义,那么等比例压缩图片。3、如果图片的大小等于标准定义,那么按照标准宽度和高度显示图片。4、如果图片的大小小于标准定义,那么不对图片进行任何压缩处理。<script language="JavaScript">//图片按比例缩放var flag=false;function DrawImage(ImgD,iwidth,ih Read More
posted @ 2012-12-27 17:45 vincent_ds Views(1956) Comments(0) Diggs(0) Edit
head写入下面2句:<link rel="icon" href="favicon.ico" type="image/x-icon"><link rel="shortcut icon" href="favicon.ico" type="image/x-icon">另外把favicon.ico放到网站内容的根目录 Read More
posted @ 2012-12-27 15:36 vincent_ds Views(298) Comments(0) Diggs(0) Edit
JavaScript中有一个call和apply方法,其作用基本相同,但也有略微的区别。先来看看JS手册中对call的解释:call 方法调用一个对象的一个方法,以另一个对象替换当前对象。call([thisObj[,arg1[, arg2[, [,.argN]]]]])参数thisObj可选项。将被用作当前对象的对象。arg1, arg2,, argN可选项。将被传递方法参数序列。说明call 方法可以用来代替另一个对象调用一个方法。call 方法可将一个函数的对象上下文从初始的上下文改变为由 thisObj 指定的新对象。如果没有提供 thisObj 参数,那么 Global 对象被用作 Read More
posted @ 2012-12-22 16:04 vincent_ds Views(164) Comments(0) Diggs(0) Edit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/htm Read More
posted @ 2012-12-20 13:35 vincent_ds Views(216) Comments(0) Diggs(0) Edit
<div id="head_tips"> <div class="tips_arrow"><em class="S_line1">◆</em><span class="S_bg1">◆</span></div> <a href="#">1</a> 条系统消息 <a href="#">点击查看</a> </div>#head_tips{ Read More
posted @ 2012-12-14 14:56 vincent_ds Views(852) Comments(0) Diggs(0) Edit
<script type="text/javascript">var offset = $("#health_alert").offset();var alert_top = offset.top;var window_height =$(window).height();var alert_hight = $("#health_alert").outerHeight();var alert_top = ( window_height - alert_hight )/ 2;$("#health_alert&quo Read More
posted @ 2012-12-13 18:18 vincent_ds Views(3474) Comments(0) Diggs(1) Edit
@charset "utf-8";/* CSS Document */* { margin: 0; padding: 0; font-family: 宋体; font-size: 14px;}.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden;}.clearfix { display: inline-table; zoom: 1;}/* Hides from IE-mac \*/* html .cle... Read More
posted @ 2012-12-06 12:46 vincent_ds Views(170) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 8 下一页