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

¸ù¾ÝinputµÄtypeÀ´¿ØÖÆcssÑùʽ

<style type="text/css">
/*
¸ù¾ÝinputµÄtypeÀ´¿ØÖÆcssÑùʽ
*/
/*
1.ÓÃcssµÄexpressionÅжϱí´ïʽ
Óŵ㣺¼òµ¥£¬ÇáÁ¿¼¶
ȱµã£ºexpressionÅжϱí´ïʽFireFoxÊDz»Ö§³ÖµÄ¡£ÖÂÃüµÄÊÇÖ»ÄÜÇø·Ö³öÒ»¸ö£¨ÀýÈçÀý×ÓÖоÍÖ»ÄÜÇø·Ö³ötextÎı¾¿ò£©£¬²»ÒªÊÔͼÉèÖöà¸ö£¬ÏÂÃæµÄ»á½«ÉÏÃæµÄ¸²¸Çµô
 
input
{
background-color:expression(this.type=="text"?'#FFC':'#eee');
}
*/
/*
2.ÓÃcssÖеÄtypeÑ¡ÔñÆ÷
Óŵ㣺¼òµ¥£¬Ã÷ÁË£¬¿ÉÒÔ·ÖÇø³ö¸÷¸öinput¿Ø¼þÐÎ̬¡£
ȱµã£ºtypeÑ¡ÔñÆ÷£¬IE6֮ǰµÄ¶Ôweb±ê×¼Ö§³ÖµÄ²»Ì«ºÃµÄä¯ÀÀÆ÷²»ÄÜÖ§³Ö
input[type="text"]
{
background-color:aquamarine;
}
input[type="password"]
{
background-color:bisque;
}
input[type="submit"]
{
background-color:blueviolet;
}
input[type="reset"]
{
background-color:chocolate;
}
input[type="radio"]
{
background-color:darkcyan;
}
input[type="checkbox"]
{
background-color:dodgerblue;
}
input[type="button"]
{
background-color:purple;
}
*/
</style>
<script type="text/javascript">
/*
  3.ÓÃjavascript½Å±¾ÊµÏÖ
 
  Óŵ㣺¿ÉÒÔ·ÖÇø³ö¸÷¸öinput¿Ø¼þÐÎ̬¡£
  ȱµã£º¼¼ÊõÇ£³¶Ãæ½Ì¹ã£¬ÒòΪÓÃjsºóÆÚ´¦Àí£¬ËùÒÔÔÚjsûÓÐÆð×÷ÓÃ֮ǰ£¬¸÷¸öinput»¹ÊÇԭʼ״̬½ÏÖÂÃüµÄÊÇFireFox²»Ö§³Ö
*/
function GetCss(obj)
{
   var colorArr=new Array("aliceblue","antiquewhite","aqua","aquamarine","darkgreen","darkslateblue","magenta","sienna");
   var tpArr=new Array("text","password","submit","reset","radio","checkbox","button","file");
   for(var i=0;i<tpArr.length;i++)
   {
      if(obj.type==tpArr[i])
   {
      obj.style.backgroundColor=colorArr[i];
   }
   }
}
function CheckType()
{
  var obj = document.getElementsByTagName("input");
  for (var i=0;i<obj.length;i++)
  {
     GetCss(obj[i]);
  }
}
</script>
<form>
    <input type="text" />
  <br>
  <br>
    &l


Ïà¹ØÎĵµ£º

Great Html Tab Panel Using CSS and Javascript

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 y ......

div+cssÖеÄIDÓëCLASSÁ½ÕßµÄÇø±ð(cssµÄÓÅÏȼ¶)

¶ÔDIV+CSSż»¹ÊÇÐÂÊÖ,ËùÒÔ¶ÔIDÓëCLASSÖ®¼äµÄÇø±ð,żµ½½ñÌìÒ²»¹ÊÇÓÐЩÐíÃÔã,¸Õ²Å²éÁËÏÂÏà¹Ø×ÊÁÏ,¹ûÈ»¸øżָÃ÷ÁË·½Ïò,ÏÂÃæÊÇËüÃÇÖ®¼äµÄÇø±ðÀ´×ÔÍøÉÏÄÚÈÝÎÒ°ÑËüÊÕ²ØÁ˽øÀ´,ÒÔ±ã²Î¿¼: ¡¡ ¡¡¡¡
Ò»¡¢ÔÚweb±ê×¼ÖÐÊDz»ÈÝÐíÖظ´IDµÄ£¬ÀýÈç div id="a" ²»ÈÝÐíÖظ´2´Î£»¶øclassËù¶¨ÒåµÄÊÇÀ࣬ÀíÂÛÉÏ¿ÉÒÔÎÞÏÞÖظ´¡£ÒÔ¸ù¾ÝÐèÒª¶à´ÎÒýÓà ......

CSS¶ÔIE6¡¢IE7¡¢IE8Ö§³ÖÏêϸµÄÒ×ÓõIJο¼

來Ô´£ºhttp://www.webjx.com/css/divcss-17091.html
ÖÐÎÄÔ­ÎÄ£ºCSSÔÚInternet Explorer 6, 7 ºÍ8ÖеIJî±ð
Òë×Ô£ºCSS Differences in Internet Explorer 6, 7 and 8
¹ØÓÚä¯ÀÀÆ÷µÄ×îÀëÆæµÄͳ¼Æ½á¹ûÖ®Ò»¾ÍÊÇInternet Explorer
 
°æ±¾6£¬7ºÍ8¹²´æ¡£½ØÖÁ±¾ÎÄ£¬Internet Explorer¸÷¸ö°æ±¾×ܹ²Õ¼¾ÝÁË´óÔ¼65%µÄÊг¡ ......

½øÐÐÒ³ÃæÉè¼Æ£¬·ÖÏíDIV+CSSһЩС¹æÔò

ÔÚ½øÐÐÒ³ÃæÉè¼ÆµÄʱºò£¬ÏàÐÅÏÂÃæÕâЩ¶«Î÷Ó¦¸ÃÄܹ»°ïÖúÄ㣬DIV+CSS£¬Ï£Íû¿ÉÒÔΪÄã½ÚÊ¡Ò»µãʱ¼ä¡£
Ò»¡¢           ÉÆÓÃcssËõд¹æÔò
    /*×¢ÒâÉÏ¡¢ÓÒ¡¢Ï¡¢×óµÄÊéд˳Ðò*/
1.      ¹ØÓڱ߾ࣨ4±ß£©£º
1px 2px 3px 4px (ÉÏ¡¢Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ