CSS×Ö·û½ØȡʱÈçºÎʹÓðٷֱȵĿí¶È
POSITION: absolute;WIDTH:100%;overflow:hidden;white-space:nowrap;ÕâÖÖ·½·¨ÔÚÒ³ÃæÓÐ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd">Õâ¾ä»°µÄʱºò¾ÍÎÞЧ¡£
ÇëÎÊÔÚ²»È¥µôÕâ¾ä»°µÄÇ°ÌâÏÂÓÐûÓÐÆäËûµÄʹÓðٷֱȿí¶È½Ø¶Ï×Ö·ûµÄCSS·½·¨£¿
ÎÒÒ»Ö±¶¼ÊÇÓÃÕâÖÖŶ£¬CSSºÃÏñûÓÐÆäËüµÄÁË
òËÆûɶ·½·¨£¬ÏÖÔÚ·¢ÏÖ²»ÊÇ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd">Õâ¾ä»°µÄÎÊÌ⣬ÊÇÖÆ×÷Èí¼þµÄÎÊÌâ¡£ÔÚDWÖÐhtmlÒ³ÃæÖпÉÒÔÓ㬵½VSµÄaspxÒ³ÃæÖоͲ»ÄÜÓÃÁË£¬µ±È»aspxÒ³ÃæÖÐÄõôÕâ¾ä»°¾Í¿ÉÒÔÁË£¬¿ÉÔÚDWµÄhtmlÒ³ÃæÖÐÒ²ÓÐÕâ¾ä»°µÄ°¡£¬²»ÖªµÀÕ¦¸ãµÄ¡£
ÁíÍ⻹½ñÌ컹·¢ÏÖ¸öÎÊÌ⣬¾ÍÊÇÎı¾¿òÔÚhtmlÒ³ÃæÖкÍÔÚaspxÒ³ÃæÖÐÏÔʾµÄ³¤¶È²»Í¬µÄ£¬htmlÒ³ÃæÖÐ50×Ö·û¿í¶ÈµÄºÍaspxÒ³ÃæÖÐ54×Ö·û¿í¶ÈµÄÏÔʾ³¤¶È²ÅÊÇÏàͬµÄ£¬ÕâЩ²î±ð¸ãµÄÓôÃÆËÀÁË¡£
¼ÓÁËxhtml1.0¹ý¶ÉÐÍdoctypeÓ¦¸Ã²»»áÓÐÕâÖÖÎÊÌâ¡£
ÕâÖÖÎĵµÀàÐÍÔÚÄ¿Ç°µÄä¯ÀÀÆ÷Ï»ù±¾É϶¼±È½ÏºÃÓá£
Ó¦¸Ã°Ñ³öÏÖÎÊÌâµÄÍøÒ³£¨»òÕßÍøÖ·£©Ìù³öÀ´£¬´ó¼Ò²ÅÓа취ÅжÏ
²ÎÔÄ£ºµ¥ÐÐÎı¾Òç³ö´¦Àí²¹ÒÅ
Ïà¹ØÎÊ´ð£º
ÎÒͨ¹ý BACKGROUND: url(images/s.gif) no-repeat 0px 0px; µ÷Õûµ½Í¼Æ¬µÄλ×ÓÕýºÃµÄʱºò¡£¿ÉÊÇͼƬ»á¸ù¾Ýä¯ÀÀÆ÷´°¿ÚµÄ´óС²»¹Ì¶¨¡£
Ç뿴ͼ
A:hover {
COLOR: #1e50c1; TEXT-DECORATION: underline; ......
ÎÒÕâÑùд¾ÍûÎÊÌâ
#cp1 img{magin:5px;}
#cp2 img{magin:5px;}
#cp3 img{magin:5px;}
ÎÒÏ뾫¼ò´úÂ룬ÓÃÏÂÃæµÄд·¨£¬¾Í³ö´íÁË£¬ÊDz»ÊÇÓï·¨ÓÐÎÊÌ⣿
#cp1,#cp2,#cp3 img{magin:5px;}
ÊÇÓï·¨ÓÐÎÊÌ⣬ÄãµÄд·¨Ïà ......
ÎÒ¶ÔcssÔ²½Ç±àдµÄÀí½â²»´óÇå³þ¡£¡£¡£¡££¬Çë´ó¼Ò°ï°ïæ
(¡Ño¡Ñ)¡ Ö§³Ö2Â¥ ˵°×Á˾ÍÊÇ¿´ÉÏÈ¥Ïñ¸öÔ²½Ç È˵ÄÊÓ¾õ»ù±¾±æ±ð²»³öÀ´
ллѽ£¬£¬£¬ºÜÓаïÖú¡£¡£¡£
²»´í£¬°ï¶¥ÁË
²»ÓÿÍÆøÄØ
ºÙºÙÄǾÍÉ¢·Ö½á ......
HTML code:
<div id="DivC" style="float:left; height:25px; width:100%;">
<div id="Div1" style="float:left; height:25px; width:[color=#FF0000]X[/colo ......
ÏîĿ·¾¶ÊÇÕâÑùµÄ
¾ÍÊÇÓ¦ÓõÄʱºò³ö²»À´Ð§¹û ÎÒ¾õµÃÓ¦ÓõÄ·¾¶Ã»ÎÊÌâ°¡
¾ÍÊÇDtails.jsp ±»sitemesh ÐÞÊÎ Dtails¡£jsp Ó¦ÓÃcss <link rel="stylesheet" type="text/css" href=" ......