Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

jQuery:CSSÒõÓ°¶Ô»°¿ò

jQuery²å¼þ: jquery.widget.shadowbox.js
/**
* Ò»¸ö¼òµ¥µÄÉèÖÃDIVÒõÓ°µÄ²å¼þ
*
* ¹¦ÄÜ:
* 1. ¸ù¾ÝÒõÓ°¿í¶È×Ô¶¯µ÷ÕûÍâ²ãÈÝÆ÷¿í¶È,ÒÔ¼°Í¸Ã÷¶È
* 2. ¿É¶¨ÒåShadowBoxµÄ¿í¶ÈºÍ¸ß¶È
* 3. ¿ÉÓÃCSSÑùʽ±í¶¨Òå¿ÉÊÓ»¯Ñùʽ
*
* @author joe.he <developerworks@163.com>
* @copyright irgs.cn
*/
(function(jQuery) {
jQuery.fn.shadowbox = function(settings) {

var self = this;
// ĬÈÏÉèÖÃ
var defaults = {
shodowWidth: 20,
css: {
outer: 'widget-shadowbox-outer',
shadow: 'widget-shadowbox-shadow',
}
};
if (settings)
jQuery.extend(defaults, settings);

// ÉèÖÃÒõÓ°²ãµÄCSSÑùʽ
var shadow = jQuery("<div>")
.addClass(defaults.css.shadow) // ¹ØÁªÒ»¸öCSSÑùʽ¹æÔò,¿ÉÒÔ×Ô¶¨ÒåÒõÓ°Ñùʽ
.width(self.width())
.height(self.height())
.css({
marginTop:defaults.shodowWidth+"px",
marginLeft:defaults.shodowWidth+"px",
zIndex:-100,
position: "absolute"
});
var outer = jQuery("<div>")
.addClass(defaults.css.outer)
.width(self.outerWidth()+defaults.shodowWidth)
.height(self.outerHeight()+defaults.shodowWidth)
.css({
position: "absolute",
zIndex:999
});
this.prepend(shadow).wrap(outer.get());

// ·µ»ØjQuery¶ÔÏóÓû§Á´Ê½µ÷ÓÃ
return this;

};
})(jQuery);

HTMLÒ³Ãæ: jquery.widget.shadowbox.html
<?xml version="1.0" encoding="UTF-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-8" />
<mce:script type="text/javascript" src="jquery.js" mce_src="jquery.js"></mce:script>
<mce:script type="text/javascript" src="jquery.widgets.shadowbo


Ïà¹ØÎĵµ£º

cssʵÏÖ±³¾°À­É죬²»¿ÉÔÙʵÏÖÁ¬½Ó

cssʵÏÖ±³¾°À­Éì ÖÆ×÷Ò³ÃæÊ±£¬ÓÐʱÐèÒªÔÚ±í¸ñÄÚ²åÈë±³¾°Í¼,ÎÒÃÇ¿ÉÒÔʹÓÃCSS½øÐпØÖÆ£¬´úÂ룺
style="background-image:url(./images/counter_bg.jpg);background-repeat: no-repeat;background-position: right bottom;"
ÆäÖУ¬./images/counter_bg.jpgΪÏÔʾͼƬ·¾¶¡£ ......

ninjacontentǰ̨ÎÄÕ¹ÜÀí×é¼þCSSÐÞ¸Ä

ninjacontent×é¼þÔÚÎÒµÄÍøÕ¾ÉÏÏÔʾ²»Õý³££¬ÏëÐÞ¸ÄËüµÄCSSʹÆäÕý³££¬¿ÉÊÇÔõôҲÕÒ²»µ½ËüµÄCSSµÄλÖã¬ÏÖÔÚÖÕÓÚÕÒµ½ÁË£¬ÌذÑËü¼Ç¼ÏÂÀ´£¬ÒÔ±¸ÓÐÓöµ½¸úÎÒÒ»ÑùÎÊÌâµÄÈ˲鿴¡£
CSSλÖãºÍøÕ¾¸ùĿ¼\media\com_ninjacontent\css\Ŀ¼Ï¡£ ......

Íæ×ªCSS£¬´Ó²ËÄñ¿ªÊ¼Ö® CSS×ÖÌåÑÕÉ«µÄÉèÖÃ

½ñÌìдÁËÒ»¸ö¼òµ¥µÄÍøÒ³£¬Çë¿´´úÂ룺
´íÎóµÄ£º
HTML´úÂ룺
½ñÌìµÄÈÕ×Ó
//CSS´úÂëʹÓÃÍⲿÒýÈëʽ

ÎҵļÒÏçÔÚ¿­Àï
CSS´úÂ룺
/* CSS Document */
body{
font-family:Arial, Helvetica, sans-serif;
font-size:20px;
color:red; /*ÒªµÄ¾ÍÊÇÕâÑùµÄЧ¹û£ºÉèÖÃ×ÖÌåÑÕɫΪºìÉ«*/
}
½á¹ûÏÔʾµÄ×ÖÌ ......

CssÊý¾Ýͼ±í


Data visualization is mostly achieved with flash applications or
with help of some programming languages. Are those solutions the only
way to present, let's say simple data chart? How about giving it a try
with nothing but good ol' css?
Take a look at the Demo
| Download Css Chart
Approach ......

css js ÔÚ²»Í¬ä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌâ×ܽá

×î½üµÄÃæÊÔÖÐ×ÜÊÇÎÊÎÒһЩä¯ÀÀÆ÷¼æÈÝÐÔÎÊÌ⣬ËùÒÔÏÂÃæ×öÒ»¸ö×ܽ᣺
Ϊʲô»á³öÏÖÕâÖÖÏÖÏóÄØ£¿Ö÷Òª¾ÍÊÇÏñFirefoxÕâÑùä¯ÀÀÆ÷Á¼ºÃÖ§³ÖW3C±ê×¼£¬ÊÇĿǰ¶ÔCSSÖ§³Ö×îºÃµÄä¯ÀÀÆ÷£¬¶øieÊdzöÏֵıȽÏÔ磬ÔÚw3cÖ§³Ö·½Ãæ×öµÄÒ»Ö±²»ÊǺܺá£ÓкܶණÎ÷³öÏÖFFºÍIEÏÔʾ²»Ò»ÑùµÄ¸ù±¾Ô­ÒòÔÚÓÚËüÃǵÄĬÈÏÏÔʾ²»Ò»Ñù£¬¶øÕâ¸öĬÈÏÑùʽ¸ÃÈçºÎÏÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ