锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品国产亚洲第一区二区三区,中文字幕亚洲激情,春暖花开亚洲性无区一区二区http://m.tkk7.com/rain1102/category/37633.html<br/><font color="green" style="font-family: 鍗庢枃琛屾シ;font-size:16px;">鍖栧緇撴瀯鎼滅儲錛屽寲瀛︿俊鎭錛岀敓鐗╀俊鎭錛屽疄楠屽淇℃伅瀛︾瓑 銆?lt;/font><br/><font color="#3C1435">浠ラ珮縐戞妧鐨勭敓鐗┿佸寲瀛︿俊鎭妧鏈疄鐜扮敓鍛界瀛﹂鍩熶腑涓撲笟鏁版嵁鐨勮綆楀拰綆$悊銆佹彁楂樼爺鍙戣兘鍔涖佸寮哄湪縐戠爺鍜屾垚鏈晥鐜囨柟闈㈢殑鍥介檯绔炰簤鍔涳紝涓虹敓鐗┿佸寲瀛︺佸尰鑽拰瀛︽湳鏈烘瀯鎻愪緵涓嫻佺殑瑙e喅鏂規鍜屾妧鏈挩璇€?lt;/font><br/> <br/><font color="green" style="font-family: 鍗庢枃琛屾シ;font-size:16px;">瀛愭洶錛氬嵄閭︿笉鍏ワ紝涔遍偊涓嶅眳銆傚ぉ涓嬫湁閬撳垯瑙侊紝鏃犻亾鍒欓殣銆?lt;/font><font color="#3C1435"></font><br/> zh-cnThu, 31 Mar 2011 16:01:53 GMTThu, 31 Mar 2011 16:01:53 GMT60楂樻ц兘緗戠珯寤鴻-紺轟緥http://m.tkk7.com/rain1102/archive/2011/03/31/347381.htmlEric.ZhouEric.ZhouThu, 31 Mar 2011 05:29:00 GMThttp://m.tkk7.com/rain1102/archive/2011/03/31/347381.htmlhttp://m.tkk7.com/rain1102/comments/347381.htmlhttp://m.tkk7.com/rain1102/archive/2011/03/31/347381.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/347381.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/347381.htmlhttp://stevesouders.com/hpws/rules.php

Eric.Zhou 2011-03-31 13:29 鍙戣〃璇勮
]]>
Top 10 CSS Snippetshttp://m.tkk7.com/rain1102/archive/2010/01/04/308123.htmlEric.ZhouEric.ZhouMon, 04 Jan 2010 00:46:00 GMThttp://m.tkk7.com/rain1102/archive/2010/01/04/308123.htmlhttp://m.tkk7.com/rain1102/comments/308123.htmlhttp://m.tkk7.com/rain1102/archive/2010/01/04/308123.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/308123.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/308123.html鍘熸枃鍦板潃錛歨ttp://webdevmania.com/archive/top_10_css_snippets/

I have noticed myself to use a few different code snippets on a daily basis so I thought some of you might find them useful. So here we go.

     
  1.    
    center     
    Centering a website (or other elements)
       
    The HTML
    1. <DIV class=wrap>  
    2. </DIV><!-- end wrap -->  

    The CSS

     

    1. .wrap { width:960pxmargin:0 auto;}   

     

    This is an oldie, but apperantly it is not as obvious as you would think.

     

  2.  


  3.    
    stickyfooter

       
    Sticky Footer (make footer always be on bottom without absolute positioning)

     
    The HTML

     

    1. <DIV id=wrap>  
    2.   
    3. <DIV id=main class=clearfix>  
    4.   
    5. </DIV>  
    6.   
    7. </DIV>  
    8.   
    9. <DIV id=footer>  
    10.   
    11. </DIV>  

    The CSS

     

    1. * { margin:0padding:0; }    
    2.   
    3. html, body, #wrap { height100%; }   
    4.   
    5. body > #wrap {heightautomin-height100%;}   
    6.   
    7. #main { padding-bottom150px; }  /* must be same height as the footer */  
    8.   
    9. #footer {   
    10.         positionrelative;   
    11.  margin-top-150px/* negative value of footer height */  
    12.  height150px;   
    13.  clear:both;}    
    14.   
    15. /* CLEAR FIX*/  
    16. .clearfix:after {content".";   
    17.  displayblock;   
    18.  height0;   
    19.  clearboth;   
    20.  visibilityhidden;}   
    21. .clearfix {display: inline-block;}   
    22. /* Hides from IE-mac */  
    23. * html .clearfix { height1%;}   
    24. .clearfix {displayblock;}   
    25. /* End hide from IE-mac */  

     

    As of recently i have had to use this over 50 times… i think this is one of the most important tricks you will learn today.

     

  4.  


  5.    
    min-height

       
    Cross-Browser Min Height

     
    The CSS

     

    1. .element { min-height:600pxheight:auto !importantheight:600px; }   

     

    You can replace the min-height and heigth with 12em or another value that works for you.

     

  6.  


  7.    
    box-shadow

       
    Box Shadow (CSS3)

     
    The CSS

     

    1. .box { box-shadow: 5px 5px 5px #666;  -moz-box-shadow: 5px 5px 5px #666;  -webkit-box-shadow: 5px 5px 5px #666; }   

     

    As you can see since this is a CSS3 property you will need all the three commands to make it cross browser(except for ie of course). The first 2 measurements are for horizontal offset and the vertical offset. The third number is for the blur radius. And the last is the color of the shadow.

     

  8.  


  9.    
    text-shadow

       
    Text Shadow (CSS3) with IE hack

     
    The CSS

     

    1. .text { text-shadow1px 1px 1px #666; filter: Shadow(Color=#666666, Direction=135, Strength=5); }   

     

    This technique is great for all modern browsers, the IE fix works but it is not amazing quality.

     

  10.  


  11.    
    opac

       
    Cross Browser CSS Opacity

     
    The CSS

     

    1. .transparent {   
    2.      
    3.   /* Modern Browsers */ opacity: 0.7;   
    4.   
    5.   /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";   
    6.   
    7.   /* IE 5-7 */ filter: alpha(opacity=70);   
    8.   
    9.   /* Netscape */ -moz-opacity: 0.7;   
    10.   
    11.   /* Safari 1 */ -khtml-opacity: 0.7;   
    12.      
    13. }   

     

    Opacity can be used for plenty of elements, it adds a certain new age style we all strive for. Notice that in some browsers transperancy is inherited by all child elements!

     

  12.  


  13.    
    reset

       
    The Famous Meyer Reset

     
    The CSS

     

    1.   html, body, div, span, applet, object, iframe,   
    2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,   
    3. a, abbr, acronym, address, big, cite, code,   
    4. del, dfn, em, font, img, ins, kbd, q, s, samp,   
    5. small, strike, strong, sub, sup, tt, var,   
    6. dl, dt, dd, ol, ul, li,   
    7. fieldset, form, label, legend,   
    8. table, caption, tbody, tfoot, thead, tr, th, td {   
    9.  margin0;   
    10.  padding0;   
    11.  border0;   
    12.  outline0;   
    13.  font-weight: inherit;   
    14.  font-style: inherit;   
    15.  font-size100%;   
    16.  font-family: inherit;   
    17.  vertical-alignbaseline;   
    18. }   
    19. /* remember to define focus styles! */  
    20. :focus {   
    21.  outline0;   
    22. }   
    23. body {   
    24.  line-height1;   
    25.  colorblack;   
    26.  backgroundwhite;   
    27. }   
    28. ol, ul {   
    29.  list-stylenone;   
    30. }   
    31. /* tables still need 'cellspacing="0"' in the markup */  
    32. table {   
    33.  border-collapseseparate;   
    34.  border-spacing0;   
    35. }   
    36. caption, th, td {   
    37.  text-alignleft;   
    38.  font-weightnormal;   
    39. }   
    40. blockquote:before, blockquote:after,   
    41. q:before, q:after {   
    42.  content"";   
    43. }   
    44. blockquote, q {   
    45.  quotes"" "";   
    46. }   
    47.    

     

    This is the most useful css reset out there, i use it for almost everything I work on (even the 52framework, coming soon).

     

  14.  


  15.    
    dotted

       
    Removing the dotted outlines

     
    The CSS

     

    1. a, a:active { outlinenone; }   

     

    I find myself getting very annoyed with the dotted outline (especially for text-indented elements that are off the page).

     

  16.  


  17.    
    rounded

       
    Rounded Corners (non ie)

     
    The CSS

     

    1. .element {   
    2.  -moz-border-radius: 5px;   
    3.  -webkit-border-radius: 5px;   
    4.  border-radius: 5px/* future proofing */  
    5. }   
    6. .element-top-left-corner {   
    7.  -moz-border-radius-topleft: 5px;   
    8.  -webkit-border-top-left-radius: 5px;   
    9. }   

     

    Love rounded corners? Don’t want to slave over images and elements to get the effect? This is your solution, and elements still look fine in ie.

     

  18.  


  19.    
    import

       
    Override Inline Styles

     
    The CSS

     

    1. .override {   
    2.  font-size14px !important;   
    3. }   

     

    This comes in handy plenty of times, I personally use it way too much smile everytime something doesn’t work I test if its just not being applied because of some other style.



Eric.Zhou 2010-01-04 08:46 鍙戣〃璇勮
]]>
鍗婇忔槑鏁堟灉鏂囧瓧涓嶉忔槑[杞澆]http://m.tkk7.com/rain1102/archive/2009/06/10/281294.htmlEric.ZhouEric.ZhouWed, 10 Jun 2009 13:47:00 GMThttp://m.tkk7.com/rain1102/archive/2009/06/10/281294.htmlhttp://m.tkk7.com/rain1102/comments/281294.htmlhttp://m.tkk7.com/rain1102/archive/2009/06/10/281294.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/281294.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/281294.html
浠g爜:
1.<style type="text/css">
2..box{ width:600px; height:150px; background:#F00;filter:alpha(opacity=50);opacity:0.5; }
3.</style>
4.<div class="box">榪欓噷鐨勫瓧涔熷彉浜嗛鑹?lt;/div>
鏁堟灉1
榪欓噷鐨勫瓧涔熷彉浜嗛鑹?/div> 瀹為檯涓婅繖鏄痗ss鐨勭戶鎵挎満鍒訛紝鍐呴儴鐨勬枃瀛楃戶鎵夸簡澶栭儴鐨刣iv鐨勫崐閫忔槑錛屽鏋滀綘鐨勭綉欏靛彧闇瑕佸吋瀹笽E,閭d箞浣犵殑浠g爜鍙互榪欐牱鏉ュ啓錛屽湪鏂囧瓧鐨勫閮ㄥ啀鍔犱竴涓猟iv錛岃緗div鐨刾osition灞炴т負relative錛岃繖鏍稩E璁や負鍖呭惈鏂囧瓧鐨刣iv鑴辯浜嗘爣鍑嗘祦錛屾牱寮忓氨涓嶅啀緇ф壙
浠g爜2
1.<div class="box">
2.<div style="position:relative">榪欓噷鐨勫瓧鍦↖E涓嬫病鏈夊彉棰滆壊</div>
3.</div>鏁堟灉2
鏁堟灉2
榪欓噷鐨勫瓧鍦↖E涓嬫病鏈夊彉棰滆壊
濡傛灉浣犵殑緗戦〉鍙墦綆楀吋瀹筰e,閭d箞娌¢棶棰橈紝鐖舵緇欎粬涓猺elative灝辮浜嗗彲錛屼絾鏄湪鍏朵粬嫻忚鍣ㄩ噷鐨勬晥鏋滃茍涓嶉殢浣犳墍鎰匡紝鍙兘鏋勯犱袱涓猟iv鏉ユā鎷熸晥鏋滀簡,鍘熺悊鏄嬌鍚岀駭鐨勯忔槑鐨勫鍣ㄥ拰涓嶉忔槑鐨勫鍣ㄦ樉紺洪噸鍙狅紝濡備笅浠g爜
浠g爜3
1.<div style="position:relative">
2.<div class="box"></div>
3.<div style=" position:absolute;color:#000; left:0px; top:0px">榪欓噷鐨勫瓧浣撻鑹叉槸涓嶆槸鑳藉吋瀹規墍鏈夌殑嫻忚鍣ㄥ憿</div>
4.</div>鏁堟灉3
鏁堟灉3
榪欓噷鐨勫瓧浣撻鑹叉槸涓嶆槸鑳藉吋瀹規墍鏈夌殑嫻忚鍣ㄥ憿錛屾垜鍦ㄦ祴璇曠殑榪囩▼涓彂鐜幫紝浣跨敤
margin-top:-150px鎯寵浠栭噸鍙狅紝鍗村彂鐜拌繕鏄湁闂錛屽彧鑳介氳繃absolute鏉ヨ緗?/div>
榪欓噷鐨勫瓧浣撻鑹叉槸涓嶆槸鑳藉吋瀹規墍鏈夌殑嫻忚鍣ㄥ憿錛屾垜鍦ㄦ祴璇曠殑榪囩▼涓彂鐜幫紝浣跨敤
margin-top:-150px鎯寵浠栭噸鍙狅紝鍗村彂鐜拌繕鏄湁闂錛屽彧鑳介氳繃absolute鏉ヨ緗葷粨:鎬葷殑鏉ヨ浣跨敤鍗婇忔槑榪樻槸姣旇緝楹葷儲鐨勶紝濡傛灉鏄潪蹇呴』鎴戜滑榪樻槸鎹㈡垚鍏朵粬鏂規硶錛屾瘮濡傚仛鍗婇忔槑鐨勫浘鐗囧仛瀹瑰櫒鑳屾櫙錛?img src ="http://m.tkk7.com/rain1102/aggbug/281294.html" width = "1" height = "1" />

Eric.Zhou 2009-06-10 21:47 鍙戣〃璇勮
]]>tab瀹炵幇http://m.tkk7.com/rain1102/archive/2009/05/31/279141.htmlEric.ZhouEric.ZhouSun, 31 May 2009 01:01:00 GMThttp://m.tkk7.com/rain1102/archive/2009/05/31/279141.htmlhttp://m.tkk7.com/rain1102/comments/279141.htmlhttp://m.tkk7.com/rain1102/archive/2009/05/31/279141.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/279141.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/279141.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE>tab瀹炵幇 </TITLE>
  <script type="text/javascript" src="jquery-1.3.2.min.js"></script> 
  <script type="text/javascript">
     $(document).ready(function(){
    $('#demo-nav a').bind('click',function(){
     var id = this.id;
     $('#demo-nav a').removeClass('active');
     $('#'+id).addClass('active');
     $('.tab').css('display','none');
     $('#tab'+id).css('display','block');
    })
  });
    </script>
  <style type="text/css">
 
 div.demolayout {
 width:460px;
 margin: 15px 0 0 20px;
 padding:15px 0 0 30px;
 background: url(/images/index-content-bg.png) no-repeat top center;
 }

 ul.demolayout {
 list-style-type: none;
 float: left;
 margin:0px;
 padding:0px;
 }

 ul.demolayout li {
 margin: 0 0 0 0;
 float: left;
 border-bottom:1px solid #515151;
 }
 .tab{
 padding:0 0 2px 0;
 height: 160px;
 text-align:left;
 }
 ul.demolayout a {
 float: left;
 display: block;
 padding: 5px 25px;
 border-bottom: 0;
 color: #515151;
 text-decoration: none;
 font-size:14px;
 font-weight: bold;
 }

 ul.demolayout a:hover {
 background: #eee;
 }

 ul.demolayout a.active {
 background: #515151;
 padding-bottom: 5px;
 cursor: default;
 color:white;
 }

 .tabs-container {
 clear: left;
 padding:0px;
 }
 p.more_details{
  padding:2px 2px 2px 2px;
  font-size:11px;
 }
  </style>
 </HEAD>

 <BODY>
  <div id="demo" class="demolayout">

                <ul id="demo-nav" class="demolayout">
                 <li><a class="active" href="#tab1" id="1">媧誨姩璧勮</a></li>
                 <li><a class="" href="#tab2" id="2">涓氭佸垎甯?lt;/a></li>
                 <li><a class="" href="#tab3" id="3">鍟嗗鎺ㄨ崘</a></li>
                </ul>
             <div class="tabs-container">
                     <div style="display: block;" class="tab" id="tab1">
                          <p class="more_details">
        媧誨姩璧勮鍐呭淇℃伅
                          </p>
                                                 
                     </div> 
                    
                     <div style="display: none; " class="tab" id="tab2">
        <p class="more_details">
        涓氭佸垎甯冨唴瀹逛俊鎭?br />                           </p>
                     </div> 
                     <div style="display: none; " class="tab" id="tab3">
        <p id="comment" class="more_details">
        鍟嗗鎺ㄨ崘鍐呭淇℃伅
                          </p>
                     </div> 
             </div>
   </div>
 </BODY>
</HTML>



Eric.Zhou 2009-05-31 09:01 鍙戣〃璇勮
]]>
鏃犲浘鐗囧渾瑙掑疄鐜癈SShttp://m.tkk7.com/rain1102/archive/2009/05/31/279140.htmlEric.ZhouEric.ZhouSun, 31 May 2009 00:55:00 GMThttp://m.tkk7.com/rain1102/archive/2009/05/31/279140.htmlhttp://m.tkk7.com/rain1102/comments/279140.htmlhttp://m.tkk7.com/rain1102/archive/2009/05/31/279140.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/279140.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/279140.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE>鏃犲浘鐗囧渾瑙掑疄鐜?</TITLE>
  <style type="text/css">
 div#box{
 margin:0 20px;
 width:200px;
 background: #FF9E3E;
 text-align:center;
 }

 b.rtop, b.rbottom{display:block; background: #FFF;}
 b.rtop b, b.rbottom b{display:block;height: 1px;
  overflow: hidden; background: #FF9E3E;}
 b.r1{margin: 0 5px}
 b.r2{margin: 0 3px}
 b.r3{margin: 0 2px}
 b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
 .prod_title{
  color:#804000;
  text-align:center;
  font-size:14px;
  font-weight: bold;
  padding: 5px 5px;
 }

 div.details{
  padding:2px;
  font-size:11px;
  text-align:left;
 }
 .box_center{
  width:200px;
  height:150px;
  padding: 2px;
 }

 a.more{
  font-style:italic;
  color:#804000;
  float:right;
  text-decoration:none;
  font-size:11px;
  padding:0px 15px 0 0;
 }
  </style>
 </HEAD>

 <BODY>
  <div id="box">
   <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
    <div class="box_center">
      <div class="prod_title">鍦嗚嫻嬭瘯</div>
      <div class="details">鍐呭淇℃伅</div>
      <a href="#" class="more">- 璇︾粏淇℃伅 -</a>
      <div class="clear"></div>
    </div>
   <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
   </div>
 </BODY>
</HTML>



Eric.Zhou 2009-05-31 08:55 鍙戣〃璇勮
]]>
10涓熀浜?JavaScript 鐨?WYSIWYG 緙栬緫鍣?/title><link>http://m.tkk7.com/rain1102/archive/2009/04/27/267729.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Mon, 27 Apr 2009 07:44:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2009/04/27/267729.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/267729.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2009/04/27/267729.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/267729.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/267729.html</trackback:ping><description><![CDATA[<div class="9tbd97j" id="news_content"> <p><a >COMSHARP CMS</a> 鍐欓亾錛氬湪綰跨紪杈戝唴瀹圭殑鏃跺欙紝閭d簺鍩轟簬 JavaScript 鐨勭紪杈戝櫒甯簡鎴戜滑澶у繖錛岃繖浜涙墍瑙佸嵆鎵寰楋紙WYSIWYG錛夌紪杈戝櫒錛岀粰鎴戜滑鎻愪緵浜嗙被浼?Office 鐨勬搷浣滀綋楠屻傚浠婏紝浠諱綍緗戠珯鍐呭綆$悊緋葷粺錛圕MS錛夊拰鍗氬緋葷粺閮介渶瑕佷竴涓繖鏍風殑緙栬緫鍣ㄣ傛湰鏂囩簿閫変簡10涓熀浜?JavaScript  鐨勭紪杈戝櫒錛屽畠浠湁鐨勬槸鍩轟簬 jQuery 妗嗘灦錛屾湁鐐瑰垯涓嶆槸銆?/p> <h2>MarkitUp - jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 556px; height: 139px" height="139" alt="MarkitUp" src="http://www.queness.com/resources/images/richtexteditor/markitup.gif" width="556" /></p> <p>鍔熻兘涓嶆槸寰堝錛屼絾寰堣交閲忥紝寰堢伒媧匯傛墦鍖呭悗鍙湁6.5K澶у皬銆?/p> <h2>jWYSIWYG - jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 548px; height: 137px" height="137" alt="jWYSIWYG" src="http://www.queness.com/resources/images/richtexteditor/jwysiwyg.gif" width="548" /></p> <p>闈炲父鍩烘湰鐨勭紪杈戝櫒錛岀畝鍗曚負鏈傛墦鍖呭悗鍙湁7K銆?/p> <h2>Lightweight RTE- jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 540px; height: 135px" height="135" alt="jWYSIWYG" src="http://www.queness.com/resources/images/richtexteditor/lightweightrte.gif" width="540" /></p> <p>綆鍗曞埌涓嶈兘鍐嶇畝鍗曪紝寰堝鏄撹嚜宸變慨鏀廣?/p> <h2>HTMLBox - jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 536px; height: 134px" height="134" alt="HTMLBox" src="http://www.queness.com/resources/images/richtexteditor/htmlbox.gif" width="536" /></p> <p>璺ㄦ祻瑙堝櫒錛屽紑婧愶紝鍩轟簬 jQuery銆傚彲浠ュ緢瀹規槗鍚屽悇縐?CMS錛岃鍧涳紝鐣欒█鏈紝鍗氬絳夌郴緇熼泦鎴愩?/p> <h2>D Small Rich Text Editor - jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 536px; height: 134px" height="134" alt="D Small Rich Text Editor" src="http://www.queness.com/resources/images/richtexteditor/dsrte.gif" width="536" /></p> <p>鍩轟簬 iframe 瀵硅薄銆?/p> <h2>WYMEditor - jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 540px; height: 135px" height="135" alt="WYMEditor" src="http://www.queness.com/resources/images/richtexteditor/wymeditor.gif" width="540" /></p> <p> </p> <!-- ################## NON jQUery ################### --> <h2>TinyMCE - non-jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 536px; height: 134px" height="134" alt="TinyMCE" src="http://www.queness.com/resources/images/richtexteditor/tinymce.gif" width="536" /></p> <p>鏈緇忓吀鐨勫熀浜?JavaScript 鐨勭紪杈戝櫒錛孋OMSHARP CMS 榛樿鐨勭紪杈戝櫒灝辨槸榪欎釜銆?/p> <h2>fckeditor - Non-jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 532px; height: 133px" height="133" alt="fckeditor" src="http://www.queness.com/resources/images/richtexteditor/fckeditor.gif" width="532" /></p> <p>鍔熻兘闈炲父寮哄ぇ銆?/p> <h2>Yahoo YUI Rich Text Editor - Non-jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 536px; height: 134px" height="134" alt="Yahoo UI RTE" src="http://www.queness.com/resources/images/richtexteditor/yui.gif" width="536" /></p> <p>鍩轟簬 Yahoo YUI錛岀畝鍗曪紝浣嗗緢鍙潬銆?/p> <h2>Xinha - Non-jQuery</h2> <p><strong><a >Official Website</a></strong> | <strong><a >Demo</a></strong><br /> <img class="img" style="width: 540px; height: 135px" height="135" alt="Xinha" src="http://www.queness.com/resources/images/richtexteditor/xinha.gif" width="540" /></p> <p>鑷敱鐨勫熀浜?nbsp; BSD 璁稿彲緙栬緫鍣紝鍔熻兘瀹屽杽錛屽緢閫傚悎鍚屽悇縐嶇郴緇熼泦鎴愩?/p> <p>鏈枃鍘熸枃鏉ユ簮錛?a >http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors</a></p> <p> </p> </div> <br /> <span>鏉ヨ嚜: <a >comsharp</a> </span><img src ="http://m.tkk7.com/rain1102/aggbug/267729.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2009-04-27 15:44 <a href="http://m.tkk7.com/rain1102/archive/2009/04/27/267729.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓簀mesa琛ㄦ牸鐨刣ate綾誨瀷鏁版嵁鍔爁ilterhttp://m.tkk7.com/rain1102/archive/2008/06/20/209456.htmlEric.ZhouEric.ZhouFri, 20 Jun 2008 06:59:00 GMThttp://m.tkk7.com/rain1102/archive/2008/06/20/209456.htmlhttp://m.tkk7.com/rain1102/comments/209456.htmlhttp://m.tkk7.com/rain1102/archive/2008/06/20/209456.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/209456.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/209456.html<jmesa:htmlColumn
    property="born"
   pattern="MM/yyyy"
    cellEditor="org.jmesa.view.editor.DateCellEditor"/>

package com.founder.web.ext;

import Java.util.Date;
import Java.util.HashMap;
import Java.util.Map;

import org.jmesa.core.filter.DateFilterMatcher;
import org.jmesa.core.filter.FilterMatcher;
import org.jmesa.core.filter.FilterMatcherMap;
import org.jmesa.core.filter.MatcherKey;

public class DateFilterMatcherMap implements FilterMatcherMap {

 public Map<MatcherKey, FilterMatcher> getFilterMatchers() {
  Map<MatcherKey, FilterMatcher> filterMatcherMap = new HashMap<MatcherKey, FilterMatcher>();
  filterMatcherMap.put(new MatcherKey(Date.class, "born"), new DateFilterMatcher("MM/dd/yyyy"));
  return filterMatcherMap;
 }

}

鐜板湪闇瑕佷慨鏀?span class="pln">tableFacade鏍囩涓?/p>

<jmesa:tableFacade
    id
="tag"
    filterMatcherMap="com.founder.web.ext.DateFilterMatcherMap"


Eric.Zhou 2008-06-20 14:59 鍙戣〃璇勮
]]>
CSS鎺у埗textarea瀹藉害鍥哄畾錛岃嚜鍔ㄥ楂?input楂樺害鍥哄畾錛岃嚜鍔ㄥ瀹?/title><link>http://m.tkk7.com/rain1102/archive/2008/06/19/209224.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Thu, 19 Jun 2008 10:07:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2008/06/19/209224.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/209224.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2008/06/19/209224.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/209224.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/209224.html</trackback:ping><description><![CDATA[<p>input楂樺害鍥哄畾錛岃嚜鍔ㄥ瀹?lt;br><br /> <input  type="text"  style="width:60;overflow-x:visible;"></p> <p><br><br /> <br><br /> textarea瀹藉害鍥哄畾錛岃嚜鍔ㄥ楂?lt;br></p> <p><textarea  type="text"  style="width:260;overflow-y:visible;"></textarea><br /> </p><img src ="http://m.tkk7.com/rain1102/aggbug/209224.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-06-19 18:07 <a href="http://m.tkk7.com/rain1102/archive/2008/06/19/209224.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>FireFox innerHTML鏃犳晥http://m.tkk7.com/rain1102/archive/2008/06/19/209215.htmlEric.ZhouEric.ZhouThu, 19 Jun 2008 09:42:00 GMThttp://m.tkk7.com/rain1102/archive/2008/06/19/209215.htmlhttp://m.tkk7.com/rain1102/comments/209215.htmlhttp://m.tkk7.com/rain1102/archive/2008/06/19/209215.html#Feedback4http://m.tkk7.com/rain1102/comments/commentRss/209215.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/209215.html浠婂ぉ鍦ㄥ仛欏甸潰鐨勬椂鍊欓亣鍒頒竴涓棶棰? 鍦ㄤ嬌鐢╕UI鐨勫脊鍑洪〉闈㈢殑鏃跺?innerHTML鍦‵ireFox涓嬮潰絎竴嬈″彲浠?鐒跺悗鍐嶉噸鏂板脊鍑洪〉闈㈢殑鏃跺欏氨鏃犳晥浜?浣嗗湪IE涓嬮潰鏄ソ鐨?浠g爜濡備笅:
function disciplineChanged(value) {
  if (value == 'Audit') {
   dueDateLabel.innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.numberofceu.title'/>";
  }else if (value == 'Additional CEU') {
   dueDateLabel.innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.expiration.title'/>";
  } else if(value == 'Due Date') {
   dueDateLabel.innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.duedate.title'/>";
  }
  
 }

鍚庢潵鏀逛負浣跨敤鏍囧噯鍐欐硶灝卞彲浠ヤ簡.document.getElementById("dueDateLabel")
function disciplineChanged(value) {
  if (value == 'Audit') {
   document.getElementById("dueDateLabel").innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.numberofceu.title'/>";
  }else if (value == 'Additional CEU') {
   document.getElementById("dueDateLabel").innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.expiration.title'/>";
  } else if(value == 'Due Date') {
   document.getElementById("dueDateLabel").innerHTML="<ext:message key='investigations.newdisciplinarysanction.casedisciplinedetail.duedate.title'/>";
  }
  
 }
嫻垂浜嗘垜鍗婂皬鏃剁殑鏃墮棿!



Eric.Zhou 2008-06-19 17:42 鍙戣〃璇勮
]]>
鑷畾涔夐紶鏍囨彁紺轟唬鐮?/title><link>http://m.tkk7.com/rain1102/archive/2008/01/23/177315.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Wed, 23 Jan 2008 08:38:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2008/01/23/177315.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/177315.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2008/01/23/177315.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/177315.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/177315.html</trackback:ping><description><![CDATA[<p><span style="color: #008000"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br /> <HTML><br />  <HEAD><br />   <TITLE> Tip </TITLE><br />   <script type="text/JavaScript"><br /> <span style="color: #ff0000"> function showTip(oEvent) {<br />   var oDiv = document.getElementById("divTip1");<br />   oDiv.style.visibility = "visible";<br />   oDiv.style.left = oEvent.clientX + 5;<br />   oDiv.style.top = oEvent.clientY + 5;<br />  }<br />  function hideTip(oEvent) {<br />   var oDiv = document.getElementById("divTip1");<br />   oDiv.style.visibility = "hidden";<br />  }</span><br />   </script><br />  </HEAD></span></p> <p><span style="color: #008000"> <BODY><br />  <p>Move your mouser over the red square.</p><br />  <div id="div1" style="background-color:red; height:50px; width:50px" onmouseover="showTip(event);" onmouseout="hideTip(event);"><div><br />  <div id="divTip1" style="background-color:yellow;position:absolute;visibility:hidden;padding:5px"><br />   <span style="font-weight:bold">Custom Tooltip</span><br/><br />  </div><br />  </BODY><br /> </HTML><br /> </span></p><img src ="http://m.tkk7.com/rain1102/aggbug/177315.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-01-23 16:38 <a href="http://m.tkk7.com/rain1102/archive/2008/01/23/177315.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍙姌鍙犲尯鍩熷疄鐜頒唬鐮?/title><link>http://m.tkk7.com/rain1102/archive/2008/01/23/177308.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Wed, 23 Jan 2008 08:20:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2008/01/23/177308.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/177308.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2008/01/23/177308.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/177308.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/177308.html</trackback:ping><description><![CDATA[<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br /> <HTML><br />  <HEAD><br />   <TITLE> Toggle </TITLE><br />   <script type="text/JavaScript"><br /> <span style="color: #ff0000"> function toggle(sDivId) {<br />   var oDiv = document.getElementById(sDivId);<br />   oDiv.style.display = (oDiv.style.display == "none") ? "block":"none";<br />  }</span><br />   </script><br />  </HEAD></p> <p> <BODY><br />  <div style ="background-color:blue; color:white; font-weight:bold; padding:10px; cursor:pointer" onclick="toggle('divContent1');">Click Here</div><br />  <div style="border:3px solid blue; height:100px;padding:10px" id="divContent1"><br />   This is some content to show and hide.<br />  </div><br />  <div style ="background-color:blue; color:white; font-weight:bold; padding:10px; cursor:pointer" onclick="toggle('divContent2');">Click Here</div><br />  <div style="border:3px solid blue; height:100px;padding:10px" id="divContent2"><br />   This is some content to show and hide.<br />  </div><br />  </BODY><br /> </HTML></p><img src ="http://m.tkk7.com/rain1102/aggbug/177308.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-01-23 16:20 <a href="http://m.tkk7.com/rain1102/archive/2008/01/23/177308.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>snap緇欐枃绔犱腑鐨勯摼鎺ュ姞涓婄緝鐣ュ浘(灝忔暀紼?錛堣漿杞斤級http://m.tkk7.com/rain1102/archive/2007/12/20/168953.htmlEric.ZhouEric.ZhouThu, 20 Dec 2007 02:36:00 GMThttp://m.tkk7.com/rain1102/archive/2007/12/20/168953.htmlhttp://m.tkk7.com/rain1102/comments/168953.htmlhttp://m.tkk7.com/rain1102/archive/2007/12/20/168953.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/168953.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/168953.html鏍囨斁鍒伴摼鎺ヤ笂灝卞彲浠ョ湅鍒扮緝鐣ュ浘銆?br /> 鏁堟灉婕旂ず瑙?a target="_blank">鏈珯棣栭〉

鍏蜂綋浣跨敤鍔炴硶錛?br /> 鍒?a target="_blank" rel="nofollow">snap緗戠珯鍙互鐢寵鍒頒竴孌電被浼間互涓嬪艦寮忕殑浠g爜錛?br />

<script defer id="snap_preview_anywhere" type="text/javascript" src="http://spa.snap.com/snap_preview_anywhere.js?ap=1&amp;key=739080a127808f9856fa43a8c91c4d21&amp;sb=1&amp;domain=dimlau.com"></script>

灝嗕唬鐮佺疆浜庨〉闈唬鐮佺殑</head>鍓嶉潰灝卞彲浠ヤ簡銆傦紙緇忔祴璇曪紝涓轟笉鎷栨參閫熷害錛屾斁鍦?lt;/body>鍓嶄篃鍙互錛岋級

涓嬮潰璇磋浠g爜鐨勪慨鏀癸細

1銆佷嬌鐢ㄩ粯璁ょ殑浠g爜錛岄紶鏍囩Щ鍔ㄥ埌閾炬帴涓婃椂鏄劇ず鐨勬晥鏋滄槸甯︽悳绱㈡鐨勶紝浣嗘槸鍙互閫氳繃淇敼浠g爜鏉ュ幓鎺夋悳绱㈡錛屽厛鐪嬫晥鏋滃姣旓細
snap

淇敼鏂規硶鏄紝灝嗚幏寰椾唬鐮佷腑鐨?strong>sb=1鏀規垚sb=0

2銆侀粯璁や唬鐮佹晥鏋滄槸欏甸潰涓殑鎵鏈夐摼鎺ラ兘鏈夐紶鏍囧垝榪囨椂鏄劇ず緙╃暐鍥炬晥鏋溿?/strong>濡傛灉浣犳兂瀵規煇涓壒瀹氶摼鎺ョ鐢ㄧ緝鐣ュ浘鏁堟灉錛屽彲浠ュ璇ラ摼鎺ュ姞涓婁竴涓垎綾繪潵鏍囪瘑錛?br /> 渚嬪閾炬帴

<a href="xxxx">xxx</a>
錛岀鐢ㄧ緝鐣ュ浘鐨勬柟娉曟槸鍐欐垚
<a href="xxxx" class="snap_nopreview">xxx</a>

閫氬父錛屼竴涓〉闈㈤噷澶ч儴鍒嗛摼鎺ユ垜浠兘涓嶆兂鍔犲叆緙╃暐鍥劇殑錛屾墍浠ヤ笂榪板姙娉曟湁鐐圭儲鐞愪簡銆?br /> 鍏跺疄鍙互閫氳繃淇敼浠g爜涓殑ap=1涓?strong>ap=0鏉ヤ嬌欏甸潰鐨勬墍鏈夐摼鎺ュ湪榛樿鎯呭喌涓嬩笉鏄劇ず緙╃暐鍥撅紝榪欐椂鍙湁閾炬帴鍐欐垚浠ヤ笅鏍煎紡鐨勬儏鍐典笅鎵嶄細鏈夌緝鐣ュ浘鏄劇ず錛?br />

<a class="snap_preview" href="XXX">XXX</a>

瀵逛簬涓婅堪鍚勭鎯呭喌錛屽鏋滈摼鎺ユ湰韜凡緇忔湁浜嗘煇涓猚lass鍒嗙被錛屾瘮濡傚凡緇忓垎綾諱負class="123",鍙互鐢?strong>絀烘牸鏉ュ垎闅旓紝騫惰祴浜堝涓猚lass鍒嗙被錛屾瘮濡?br /> class="123 snap_nopreview"鎴栬卌lass="123 snap_preview"

浠ヤ笂涓烘湰浜虹殑涓鐐瑰皬灝忓績寰楋紝甯屾湜瀵瑰悇浣嶇湅瀹樻湁鐐瑰府鍔┿?br /> --------------------------------------------------------------------------------------------------------

瀵逛簬鎴戜嬌鐢ㄧ殑MT錛屽彲浠ュ妯$増涓殑璇勮鑰呯綉绔欓摼鎺ュ艦寮忓姞鍏ヤ竴涓猚lass="snap_preview"鏉ュ疄鐜板璇勮鑰呯綉绔欑晫闈㈢殑鍒濇棰勮錛屾垜瑙夊緱鏄釜涓嶉敊鐨勫皬宸ュ叿銆?br /> 褰撶劧鍏朵粬紼嬪簭錛屼篃鍙互鍋氱浉搴旂殑淇敼瀹炵幇璇ユ晥鏋溿傛垜灝變笉鍐嶅璇翠簡銆?/p>

Eric.Zhou 2007-12-20 10:36 鍙戣〃璇勮
]]>
絎﹀悎web鏍囧噯鎻掑叆Flash鐨勬柟娉?/title><link>http://m.tkk7.com/rain1102/archive/2007/12/17/168268.html</link><dc:creator>Eric.Zhou</dc:creator><author>Eric.Zhou</author><pubDate>Mon, 17 Dec 2007 08:57:00 GMT</pubDate><guid>http://m.tkk7.com/rain1102/archive/2007/12/17/168268.html</guid><wfw:comment>http://m.tkk7.com/rain1102/comments/168268.html</wfw:comment><comments>http://m.tkk7.com/rain1102/archive/2007/12/17/168268.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/rain1102/comments/commentRss/168268.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/rain1102/services/trackbacks/168268.html</trackback:ping><description><![CDATA[<a target="_blank">絎﹀悎web鏍囧噯鎻掑叆Flash鐨勬柟娉?/a><img src ="http://m.tkk7.com/rain1102/aggbug/168268.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-12-17 16:57 <a href="http://m.tkk7.com/rain1102/archive/2007/12/17/168268.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤CSS鎺у埗鍥劇墖瀵歸綈鏂瑰紡http://m.tkk7.com/rain1102/archive/2007/12/15/168013.htmlEric.ZhouEric.ZhouSat, 15 Dec 2007 15:04:00 GMThttp://m.tkk7.com/rain1102/archive/2007/12/15/168013.htmlhttp://m.tkk7.com/rain1102/comments/168013.htmlhttp://m.tkk7.com/rain1102/archive/2007/12/15/168013.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/168013.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/168013.html

Eric.Zhou 2007-12-15 23:04 鍙戣〃璇勮
]]>
CSS鏍峰紡鍒囨崲鎶宸?- 鍔ㄦ佹洿鎹㈢綉欏佃壊褰╃毊鑲?杞?http://m.tkk7.com/rain1102/archive/2007/11/28/163809.htmlEric.ZhouEric.ZhouWed, 28 Nov 2007 12:58:00 GMThttp://m.tkk7.com/rain1102/archive/2007/11/28/163809.htmlhttp://m.tkk7.com/rain1102/comments/163809.htmlhttp://m.tkk7.com/rain1102/archive/2007/11/28/163809.html#Feedback4http://m.tkk7.com/rain1102/comments/commentRss/163809.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/163809.html鏍峰紡涓庢暟鎹垎紱繪墍甯︽潵鐨勪笉鍙槸絎﹀悎鏍囧噯榪欐牱鐨勭畝鍗曪紝鏍峰紡鏃㈢劧涓庢暟鎹垎紱婚偅涔堟牱寮忕殑鍒囨崲鍒欏彉寰楃悊鎵褰撶劧鐨勪簡錛佷絾鏄綉涓婅繖鏍風殑涓枃鏁欑▼瀹炲湪鏄お灝戜簡錛佹墍浠ユ垜鏀墮泦浜嗕竴閮ㄥ垎涓緗戠珯宸茬粡瀹炵幇鐨勬妧鏈祫鏂欐暣鐞嗗嚭鏉ヤ緵緗戝弸鍙傝冦?/span>

棣栧厛瑕佸叿澶囦笉鍚屽唴瀹圭殑CSS鏂囦歡錛堟渶濂芥瘡涓枃浠朵唬琛ㄤ竴縐嶆牱寮忥紝鎴栨槸浠h〃闇瑕佷綔鍑哄彉鍔ㄧ殑閮ㄥ垎錛夈傝繖閲屼互涓変釜涓轟緥錛?/span>

絎竴涓槸鑳屾櫙涓虹孩鑹茬殑CSS鏂囦歡錛?/span>red.css錛?/span>CSS涓殑鍐呭涓猴細

Copy code

body {background-color:red;}

絎簩涓槸鑳屾櫙涓虹豢鑹茬殑CSS鏂囦歡錛?/span>green.css錛?/span>CSS涓殑鍐呭涓猴細 

Copy code

body {background-color:green;}

絎笁涓槸鑳屾櫙涓洪粍鑹茬殑CSS鏂囦歡錛?/span>yellow.css錛?/span>CSS涓殑鍐呭涓猴細

Copy code

body {background-color:yellow;}

鐒跺悗鍦?/span>xthml鏂囦歡涓姞鍏ヨ繖涓変釜CSS鐨勯摼鎺?/span>

Copy code

<link rel="alternate stylesheet" href="red.css" type="text/css" title="red" media="screen, projection"/>
<link rel="stylesheet" href="green.css" type="text/css" title="green" media="screen, projection"/>
<link rel="alternate stylesheet" href="yellow.css" type="text/css" title="yellow" media="screen, projection"/>


榪欎笁涓腑闄や簡title涓嶄竴鏍峰榪樻湁涓涓湴鏂規湁鎵涓嶅悓錛岄偅灝辨槸REL銆傜涓涓笌絎笁涓兘鏄?/span>alternate stylesheet鍙湁絎簩涓槸stylesheet銆傝繖絎簩涓氨鏄綋鐒舵牱寮忋?/span>

鍦ㄩ摼鎺ヤ笅闈㈠啀瀵煎叆涓涓?/span>JS鏂囦歡錛岀敤鏉ユ帶鍒惰繖涓牱寮忓垏鎹?/span>

Copy code

function setActiveStyleSheet(title) {
  var i, a, main;
  if (title) {
  for(i=0; (a = document.getElementsByTagName('link')[i]); i++) {
  if(a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title')) {
  a.disabled = true;
  if(a.getAttribute('title') == title) a.disabled = false;
  }
  }
  }
  }
  function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName('link')[i]); i++) {
  if(a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title') && !a.disabled) return a.getAttribute('title');
  }
  return null;
}


鍦ㄥ悎閫傜殑鍦版柟鍔犲叆涓変釜鍒囨崲鎸夐挳

Copy code

<a href="javascript :void()" onclick="setActiveStyleSheet('red'); return false;" title="綰㈣壊鏍峰紡"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('green'); return false;" title="
緇胯壊鏍峰紡"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('yellow'); return false;" title="
榛勮壊鏍峰紡"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('none'); return false;" title="
娌℃湁鏍峰紡"></a>

濂戒簡鍙戝竷璇曡瘯鐐歸偅涓変釜鍒囨崲閾炬帴錛佹槸涓嶆槸宸茬粡鍒囨崲浜嗘牱寮忥紵


琛ラ仐錛氬甫鏈夎蹇嗗姛鑳界殑JS鏂囨。

Copy code

function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName
("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style")
!= -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title)
a.disabled = false;
}
}
}
function getActiveStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName
("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style")
!= -1 && a.getAttribute("title") && !a.disabled)
return a.getAttribute("title");
}
return null;
}
function getPreferredStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName
("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
}
return null;
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+";
path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return
c.substring(nameEQ.length,c.length);
}
return null;
}
window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie :
getPreferredStyleSheet();
setActiveStyleSheet(title);
}
window.onunload = function(e) {
var title = getActiveStyleSheet();
createCookie("style", title, 365);
}
var cookie = readCookie("style");
var title = cookie ? cookie :
getPreferredStyleSheet();
setActiveStyleSheet(title);



Eric.Zhou 2007-11-28 20:58 鍙戣〃璇勮
]]>
瀵筶i鍏冪礌榪涜鏍峰紡鍖?瀹炵幇姘村鉤鏀劇疆http://m.tkk7.com/rain1102/archive/2007/11/22/162471.htmlEric.ZhouEric.ZhouThu, 22 Nov 2007 13:37:00 GMThttp://m.tkk7.com/rain1102/archive/2007/11/22/162471.htmlhttp://m.tkk7.com/rain1102/comments/162471.htmlhttp://m.tkk7.com/rain1102/archive/2007/11/22/162471.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/162471.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/162471.html  display: inline;  //璁╂墍鏈夌殑鍦ㄤ竴琛?br />  list-style-type: none;
}

list-style-type鐨勫煎彲浠ヤ負:
disc Default. Solid circles.
circle Outlined circles.
square Solid squares.
decimal 1, 2, 3, 4, and so on.
lower-roman i, ii, iii, iv, and so on.
upper-roman I, II, III, IV, and so on.
lower-alpha a, b, c, d, and so on.
upper-alpha A, B, C, D, and so on.
none No marker is shown


Eric.Zhou 2007-11-22 21:37 鍙戣〃璇勮
]]>
Display涓嶸isibility鐨勪笉鍚?http://m.tkk7.com/rain1102/archive/2006/10/16/75390.htmlEric.ZhouEric.ZhouMon, 16 Oct 2006 04:58:00 GMThttp://m.tkk7.com/rain1102/archive/2006/10/16/75390.htmlhttp://m.tkk7.com/rain1102/comments/75390.htmlhttp://m.tkk7.com/rain1102/archive/2006/10/16/75390.html#Feedback0http://m.tkk7.com/rain1102/comments/commentRss/75390.htmlhttp://m.tkk7.com/rain1102/services/trackbacks/75390.htmlcss涓殑display涓巚isibility鈥斺斿ぇ澶氭暟浜哄緢瀹規槗灝哻ss灞炴isplay鍜寁isibility娣鋒穯錛屽畠浠湅浼兼病鏈変粈涔堜笉鍚岋紝鍏跺疄瀹冧滑鐨勫樊鍒嵈鏄緢澶х殑銆?visibility灞炴х敤鏉ョ‘瀹氬厓绱犳槸鏄劇ず榪樻槸闅愯棌錛岃繖鐢╲isibility="visible|hidden"鏉ヨ〃紺猴紝visible琛ㄧず鏄劇ず錛宧idden琛ㄧず闅愯棌銆傚綋visibility琚緗負"hidden"鐨勬椂鍊欙紝鍏冪礌铏界劧琚殣钘忎簡錛屼絾瀹冧粛鐒跺崰鎹畠鍘熸潵鎵鍦ㄧ殑浣嶇疆銆?/div>

Eric.Zhou 2006-10-16 12:58 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 无码专区一va亚洲v专区在线 | 亚洲乱码中文字幕手机在线| 国产精品亚洲一区二区麻豆| 免费v片在线观看视频网站| 亚洲短视频男人的影院| 无人在线观看免费高清| 亚洲视频在线观看| 久久久久av无码免费网| 亚洲国产模特在线播放| 免费精品国产日韩热久久| 日韩亚洲国产高清免费视频| 成年女人午夜毛片免费视频 | 亚洲色中文字幕在线播放| 好吊妞998视频免费观看在线| 亚洲欧美日韩中文高清www777| 国产色婷婷精品免费视频| 男男gay做爽爽的视频免费| 亚洲国产精品尤物yw在线| 国产免费内射又粗又爽密桃视频| 亚洲日韩国产精品第一页一区| 久久久久久AV无码免费网站下载| 337p日本欧洲亚洲大胆艺术| 中文字幕在线观看免费视频| 亚洲人成自拍网站在线观看| 亚洲成a人片在线观看国产| 成全在线观看免费观看大全| 久久久婷婷五月亚洲97号色| 好男人视频在线观看免费看片| 色费女人18女人毛片免费视频| 国产成人亚洲综合无码精品| 中文字幕天天躁日日躁狠狠躁免费| 亚洲欧美日韩综合久久久| 亚洲日本va午夜中文字幕久久| 久久99热精品免费观看牛牛| 亚洲最大的成人网站| 久久精品亚洲乱码伦伦中文| 91精品视频在线免费观看| 国产成人亚洲综合无| 亚洲成熟xxxxx电影| 四虎影视在线永久免费观看| 国产在线一区二区综合免费视频|