°æȨÉùÃ÷£ºÔ´´×÷Æ·£¬ÔÊÐíתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö°æ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://blog.csdn.net/mayongzhan - ÂíÓÀÕ¼,myz,mayongzhan
Êé½ÓÉϻأ¬ÉÏ´Î˵µ½Ï´θüÐÂÊǺܾúܾÃÖ®ºóµÄÊ£¬¹û²»ÆäÈ»£¬È·ÊµÊǾÃÁËÒ»µã£¬Ò²Õý˵Ã÷csdnÔÚÎȶ¨ÖÐÇ°½ø¡£½ñÌì·¢ÏÖÔÀ´ÔÚ²©¿ÍÓÒϵĹã¸æ¿ò£¬ÏÖÔÚ³öÏÖÁËÒ»¸ö±äÖÖ£¬ÊÇÀàËÆÓÚÈËÈËÍø¹¤¾ßÌõÒ»ÑùµÄ³¤Ìõ¹ã¸æ£¬ºÜÊDz»Ë¬£¬¾ö¶¨¸ãµôËü£¬µ÷ÊÔ²»Ì«·½±ã£¬ÒòΪ´Ë¹ã¸æÔÚµã¹Ø±Õºó½ñÌì¾Í²»»áÔÙ³öÏÖ¡£
#_popup_msg_container {display:none;}
ÍêÕûµÄÑùʽÈçÏÂ
#csdnblog_allwrap {width:1000px;}
#csdnblog_sidebar {width:200px;}
#csdnblog_sidebar div.gutter{width:100%;margin:0px;}
.aboutauthor{padding:0px;border-left:0px;border-bottom:0px;border-top:0px;border-right:1px dotted #AAA;}
#csdnblog_content {width:800px;}
#csdnblog_content div.gutter{}
.publiclist_sidebar ul li {margin:0px;padding:0px;}
.publiclist_sidebar ul li a {margin:0px;padding:0px;}
.user_article h1 img{display:none;}
.user_article p{text-indent:0em;}
.blogstory p{text-indent:0em;}
.aboutaut ......
<style>
.a
{
background-color:#000000;
}
.b
{
background-color:#ffffff;
}
</style>
<ul>
<li id="aaa1" onclick="setClassName(this,'a')"> <a href="#">aaaa</a> </li>
<li id="aaa2" onclick="setClassName(this,'a')"> <a href="#">bbbbb</a> </li>
<li id="aaa3" onclick="setClassName(this,'a')"> <a href="#">ccccc </a></li>
<li id="aaa4" onclick="setClassName(this,'a')"> <a href="#">ddddd </a></li>
</ul>
<script language="javascript">
function setClassName(obj,style)
{
for(var i=1;i<5;i++)
{
var dx=eval('document.getElementById("aaa'+i+'")');
if(dx==obj)
{
dx.className=style;
}
else
{
dx.className='b'; //»òÕßÉèÖÃΪ¿Õ
& ......
ÕâЩ¶¼ÊÇ֮ǰѧϰµÄʱºò×ܽáµÄ£¬ÏÖÔÚ°ÑËüÃǶ¼ÉÏ´«ÉÏÀ´£º
DIV+CSSÃæÊ԰˸öÌâÊÇ֮ǰÔÚÄĸöÍøÕ¾¿´µ½ÁË£¬ÏÖÔÚÔõôҲÕÒ²»µ½ÁË£¬Ë÷ÐÔ×Ô¼ºÁôÒ»·Ý°É£¡
Ò»¡¢³¬Á´½Ó·ÃÎʹýºóhoverÑùʽ¾Í²»³öÏÖµÄÎÊÌ⣿
¡¡¡¡±»µã»÷·ÃÎʹýµÄ³¬Á´½ÓÑùʽ²»ÔÚ¾ßÓÐhoverºÍactiveÁË,½â¾ö·½·¨ÊǸıäCSSÊôÐÔµÄÅÅÁÐ˳Ðò: L-V-H-A
¶þ¡¢IE6µÄË«±¶±ß¾àBUG
¡¡¡¡ÀýÈç:
Example Source Code [www.52css.com]
<style type="text/css">
body {margin:0}
div { float:left; margin-left:10px; width:200px; height:200px; border:1px solid red }
</style>
¡¡¡¡¸¡¶¯ºó±¾À´Íâ±ß¾à10px,µ«IE½âÊÍΪ20px,½â¾ö°ì·¨ÊǼÓÉÏdisplay:inline
Èý¡¢ÎªÊ²Ã´FFÏÂÎı¾ÎÞ·¨³Å¿ªÈÝÆ÷µÄ¸ß¶È£¿
¡¡¡¡±ê×¼ä¯ÀÀÆ÷Öй̶¨¸ß¶ÈÖµµÄÈÝÆ÷ÊDz»»áÏóIE6ÀïÄÇÑù±»³Å¿ªµÄ,ÄÇÎÒÓÖÏë¹Ì¶¨¸ß¶È£¬ÓÖÏëÄܱ»³Å¿ªÐèÒªÔõÑùÉèÖÃÄØ£¿°ì·¨¾ÍÊÇÈ¥µôheightÉèÖÃmin-height:200px; ÕâÀïΪÁËÕչ˲»ÈÏʶmin-heightµÄ ......
I needed a tab pane to put some content in my web pages. There are many solutions around
and I must say that they are quite good, but I had some extra requirements that I needed.
I did search around but I did not find what I wanted, so I ended up producing something and now I am sharing
it with you. The idea is not just to share the code but also explain
the issues involved.
The Tabbed Pane Content should be all downloaded with the page
This is quite a Web 2.0 thing, and I must say it was not an absolute requirement, but since I am at it
I may as well do it in a good way.
The requirement is that the content of the panels should be downloaded with the page that defines the panels
and therefore when the user switches panels there will not be any delay, the content is already there
.
The tab Panel should coexist with other content
Quite a few of the tabbed panels around basically take over the content. This simply means that
you design the page around the tabbed pane and it ......
I needed a tab pane to put some content in my web pages. There are many solutions around
and I must say that they are quite good, but I had some extra requirements that I needed.
I did search around but I did not find what I wanted, so I ended up producing something and now I am sharing
it with you. The idea is not just to share the code but also explain
the issues involved.
The Tabbed Pane Content should be all downloaded with the page
This is quite a Web 2.0 thing, and I must say it was not an absolute requirement, but since I am at it
I may as well do it in a good way.
The requirement is that the content of the panels should be downloaded with the page that defines the panels
and therefore when the user switches panels there will not be any delay, the content is already there
.
The tab Panel should coexist with other content
Quite a few of the tabbed panels around basically take over the content. This simply means that
you design the page around the tabbed pane and it ......
¡¡¡¡ÆÁ±ÎIEä¯ÀÀÆ÷£¨Ò²¾ÍÊÇIEϲ»ÏÔʾ£©*:lang(zh) select {font:12px !important;} /*FF,OP¿É¼û£¬ÌرðÌáÐÑ£ºÓÉÓÚOpera×î½üµÄÉý¼¶£¬Ä¿Ç°´Ë¾äֻΪFFËùʶ±ð*/
¡¡¡¡select:empty {font:12px !important;} /*safari¿É¼û*/
¡¡¡¡ÕâÀïselectÊÇÑ¡Ôñ·û£¬¸ù¾ÝÇé¿ö¸ü»»¡£µÚ¶þ¾äÊÇMACÉÏsafariä¯ÀÀÆ÷¶ÀÓеġ£½öIE7ÓëIE5.0¿ÉÒÔʶ±ð*+html select {…}
¡¡¡¡µ±ÃæÁÙÐèÒªÖ»Õë¶ÔIE7ÓëIE5.0×öÑùʽµÄʱºò¾Í¿ÉÒÔ²ÉÓÃÕâ¸öHACK¡£ ½öIE7¿ÉÒÔʶ±ð*+html select {…!important;}
¡¡¡¡µ±ÃæÁÙÐèÒªÖ»Õë¶ÔIE7×öÑùʽµÄʱºò¾Í¿ÉÒÔ²ÉÓÃÕâ¸öHACK¡£ IE6¼°IE6ÒÔÏÂʶ±ð* html select {…}
¡¡¡¡Õâ¸öµØ·½ÒªÌرð×¢ÒâºÜ¶à²©¿Í¶¼Ð´³ÉÁËÊÇIE6µÄHACKÆäʵIE5.xͬÑù¿ÉÒÔʶ±ðÕâ¸öHACK¡£ÆäËüä¯ÀÀÆ÷²»Ê¶±ð¡£
¡¡¡¡html/**/ >body select {…}
¡¡¡¡Õâ¾äÓëÉÏÒ»¾äµÄ×÷ÓÃÏàͬ¡£½öIE6²»Ê¶±ð£¬ÆÁ±ÎIE6select {display /*ÆÁ±ÎIE6*/:none;}
¡¡¡¡ÕâÀïÖ÷ÒªÊÇͨ¹ýCSS×¢ÊÍ·Ö¿ªÒ»¸öÊôÐÔÓëÖµ£¬×¢ÊÍÔÚðºÅÇ°¡£½öIE6ÓëIE5²»Ê¶±ð£¬ÆÁ±ÎIE6ÓëIE5select/**/ { display /*IE6,IE5²»Ê¶±ð*/:none;}
¡¡¡¡ÕâÀïÓëÉÏÃæÒ»¾ä²»Í¬µÄÊÇÔÚÑ¡Ôñ·ûÓ뻨À¨ºÅÖ®¼ä¶àÁËÒ»¸öCSS×¢ÊÍ¡£²»ÆÁ±ÎIE5.5½öIE5²»Ê¶±ð£¬ÆÁ±ÎIE5select/*IE5²»Ê¶± ......
ͨ³£µÄÎÒÃÇÔÚ¶ÁÈ¡ÎÄÕ±êÌâµÄʱºò£¬Óöµ½×Ö·û¹ý¶à£¬¶¼ÊÇͨ¹ý³ÌÐòÔÚSERVER¶Ë½ØÈ¡Ò»¶¨µÄ×Ö·ûÊý£¬È»ºóÌí¼Ó...À´ÊµÏÖ±êÌⳤ¶È½ØÈ¡µÄ¡£ÆäʵÎÒÃÇÒ²¿ÉÒÔͨ¹ýCSSÀ´¿ØÖÆ¡£
ʵÁÐÈçÏ£º
.title
{
width:200px;
white-space:nowrap;
word-break:keep-all;
overflow:hidden;
text-overflow:ellipsis;
}
¿ÉÓÃspan»òdivÒýÓÃ,ÀýÈç:
<span class=title>¿Í»§¶Ë½â¾ö±êÌâÏÔʾ̫³¤Ê¡ÂÔ¶àÓಿ·Ö²¢¼ÓÊ¡ÂԺŵÄÑùʽ</span>
<div class=title>¿Í»§¶Ë½â¾ö±êÌâÏÔʾ̫³¤Ê¡ÂÔ¶àÓಿ·Ö²¢¼ÓÊ¡ÂԺŵÄÑùʽ</div>
ÒÔÉÏ2ÀýÏÔʾÔÚ³¬¹ýÑùʽ¶¨ÒåµÄ200px¿í¶Èºó,ºóÃæµÄ×Ö·û½«±»...Ìæ»».
=============================================================================
£¨ÍâÒ»£©
word-wrap : break-word ;word-break : break-all ;
word-wrapÊÇ¿ØÖÆ»»Ðеġ£
ʹÓÃbreak-wordʱ£¬Êǽ«Ç¿ÖÆ»»ÐС£ÖÐÎÄûÓÐÈκÎÎÊÌ⣬ӢÎÄÓï¾äҲûÎÊÌâ¡£µ«ÊǶÔÓÚ³¤´®µÄÓ¢ÎÄ£¬¾Í²»Æð×÷Óá£
break-wordÊÇ¿ØÖÆÊÇ·ñ¶Ï´ÊµÄ¡£
normalÊÇĬÈÏÇé¿ö£¬Ó¢Îĵ¥´Ê²»±»²ð¿ª¡£
break-all£¬ÊǶϿªµ¥´Ê¡£ÔÚµ¥´Êµ½±ß½çʱ£¬Ï¸ö ......