??xml version="1.0" encoding="utf-8" standalone="yes"?>2019中文字幕在线视频,国产激情91久久精品导航,91在线视频免费看http://www.aygfsteel.com/rain1102/category/37633.html<br/><font color="green" style="font-family: 华文行楷;font-size:16px;">化学l构搜烦Q化学信息学Q生物信息学Q实验室信息学等 ?lt;/font><br/><font color="#3C1435">以高U技的生物、化学信息技术实现生命科学领域中专业数据的计和理、提高研发能力、增强在U研和成本效率方面的国际竞争力,为生物、化学、医药和学术机构提供一的解决Ҏ和技术咨询?lt;/font><br/> <br/><font color="green" style="font-family: 华文行楷;font-size:16px;">子曰Q危邦不入,乱邦不居。天下有道则见,无道则隐?lt;/font><font color="#3C1435"></font><br/> zh-cnThu, 31 Mar 2011 16:01:53 GMTThu, 31 Mar 2011 16:01:53 GMT60高性能|站-CZhttp://www.aygfsteel.com/rain1102/archive/2011/03/31/347381.htmlEric.ZhouEric.ZhouThu, 31 Mar 2011 05:29:00 GMThttp://www.aygfsteel.com/rain1102/archive/2011/03/31/347381.htmlhttp://www.aygfsteel.com/rain1102/comments/347381.htmlhttp://www.aygfsteel.com/rain1102/archive/2011/03/31/347381.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/347381.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/347381.htmlhttp://stevesouders.com/hpws/rules.php

Eric.Zhou 2011-03-31 13:29 发表评论
]]>
Top 10 CSS Snippetshttp://www.aygfsteel.com/rain1102/archive/2010/01/04/308123.htmlEric.ZhouEric.ZhouMon, 04 Jan 2010 00:46:00 GMThttp://www.aygfsteel.com/rain1102/archive/2010/01/04/308123.htmlhttp://www.aygfsteel.com/rain1102/comments/308123.htmlhttp://www.aygfsteel.com/rain1102/archive/2010/01/04/308123.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/308123.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/308123.html原文地址Qhttp://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://www.aygfsteel.com/rain1102/archive/2009/06/10/281294.htmlEric.ZhouEric.ZhouWed, 10 Jun 2009 13:47:00 GMThttp://www.aygfsteel.com/rain1102/archive/2009/06/10/281294.htmlhttp://www.aygfsteel.com/rain1102/comments/281294.htmlhttp://www.aygfsteel.com/rain1102/archive/2009/06/10/281294.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/281294.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/281294.html
代码:
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">q里的字也变了颜?lt;/div>
效果1
q里的字也变了颜?/div> 实际上这是css的承机Ӟ内部的文字承了外部的div的半透明Q如果你的网只需要兼容IE,那么你的代码可以q样来写Q在文字的外部再加一个divQ设|此div的position属性ؓrelativeQ这样IE认ؓ包含文字的divq了标准流Q样式就不再l承
代码2
1.<div class="box">
2.<div style="position:relative">q里的字在IE下没有变颜色</div>
3.</div>效果2
效果2
q里的字在IE下没有变颜色
如果你的|页只打兼容ie,那么没问题,父框l他个relativep了可Q但是在其他览器里的效果ƈ不随你所愿,只能构造两个div来模拟效果了,原理是同的透明的容器和不透明的容器显C重叠,如下代码
代码3
1.<div style="position:relative">
2.<div class="box"></div>
3.<div style=" position:absolute;color:#000; left:0px; top:0px">q里的字体颜色是不是能兼Ҏ有的览器呢</div>
4.</div>效果3
效果3
q里的字体颜色是不是能兼Ҏ有的览器呢Q我在测试的q程中发玎ͼ使用
margin-top:-150px惌他重叠,却发现还是有问题Q只能通过absolute来设|?/div>
q里的字体颜色是不是能兼Ҏ有的览器呢Q我在测试的q程中发玎ͼ使用
margin-top:-150px惌他重叠,却发现还是有问题Q只能通过absolute来设|ȝ:ȝ来说使用半透明q是比较ȝ的,如果是非必须我们q是换成其他ҎQ比如做半透明的图片做容器背景Q?img src ="http://www.aygfsteel.com/rain1102/aggbug/281294.html" width = "1" height = "1" />

Eric.Zhou 2009-06-10 21:47 发表评论
]]>tab实现http://www.aygfsteel.com/rain1102/archive/2009/05/31/279141.htmlEric.ZhouEric.ZhouSun, 31 May 2009 01:01:00 GMThttp://www.aygfsteel.com/rain1102/archive/2009/05/31/279141.htmlhttp://www.aygfsteel.com/rain1102/comments/279141.htmlhttp://www.aygfsteel.com/rain1102/archive/2009/05/31/279141.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/279141.htmlhttp://www.aygfsteel.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">zd资讯</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">
        zd资讯内容信息
                          </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 发表评论
]]>
无图片圆角实现CSShttp://www.aygfsteel.com/rain1102/archive/2009/05/31/279140.htmlEric.ZhouEric.ZhouSun, 31 May 2009 00:55:00 GMThttp://www.aygfsteel.com/rain1102/archive/2009/05/31/279140.htmlhttp://www.aygfsteel.com/rain1102/comments/279140.htmlhttp://www.aygfsteel.com/rain1102/archive/2009/05/31/279140.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/279140.htmlhttp://www.aygfsteel.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://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2009/04/27/267729.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/267729.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2009/04/27/267729.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/267729.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/267729.html</trackback:ping><description><![CDATA[<div class="wmqeeuq" id="news_content"> <p><a >COMSHARP CMS</a> 写道Q在U编辑内容的时候,那些Z JavaScript 的编辑器帮了我们大忙Q这些所见即所得(WYSIWYGQ编辑器Q给我们提供了类?Office 的操作体验。如今,M|站内容理pȝQCMSQ和博客pȝ都需要一个这L~辑器。本文精选了10个基?JavaScript  的编辑器Q它们有的是Z jQuery 框架Q有点则不是?/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>功能不是很多Q但很轻量,很灵zR打包后只有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>非常基本的编辑器Q简单ؓ本。打包后只有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>单到不能再简单,很容易自׃攏V?/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>跨浏览器Q开源,Z jQuery。可以很Ҏ同各U?CMSQ论坛,留言本,博客{系l集成?/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>Z 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>最l典的基?JavaScript 的编辑器QCOMSHARP CMS 默认的编辑器是q个?/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>Z Yahoo YUIQ简单,但很可靠?/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 许可~辑器,功能完善Q很适合同各U系l集成?/p> <p>本文原文来源Q?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://www.aygfsteel.com/rain1102/aggbug/267729.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2009-04-27 15:44 <a href="http://www.aygfsteel.com/rain1102/archive/2009/04/27/267729.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>为jmesa表格的datecd数据加filterhttp://www.aygfsteel.com/rain1102/archive/2008/06/20/209456.htmlEric.ZhouEric.ZhouFri, 20 Jun 2008 06:59:00 GMThttp://www.aygfsteel.com/rain1102/archive/2008/06/20/209456.htmlhttp://www.aygfsteel.com/rain1102/comments/209456.htmlhttp://www.aygfsteel.com/rain1102/archive/2008/06/20/209456.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/209456.htmlhttp://www.aygfsteel.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宽度固定Q自动增?input高度固定Q自动增?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2008/06/19/209224.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/209224.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2008/06/19/209224.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/209224.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/209224.html</trackback:ping><description><![CDATA[<p>input高度固定Q自动增?lt;br><br /> <input  type="text"  style="width:60;overflow-x:visible;"></p> <p><br><br /> <br><br /> textarea宽度固定Q自动增?lt;br></p> <p><textarea  type="text"  style="width:260;overflow-y:visible;"></textarea><br /> </p><img src ="http://www.aygfsteel.com/rain1102/aggbug/209224.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-06-19 18:07 <a href="http://www.aygfsteel.com/rain1102/archive/2008/06/19/209224.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FireFox innerHTML无效http://www.aygfsteel.com/rain1102/archive/2008/06/19/209215.htmlEric.ZhouEric.ZhouThu, 19 Jun 2008 09:42:00 GMThttp://www.aygfsteel.com/rain1102/archive/2008/06/19/209215.htmlhttp://www.aygfsteel.com/rain1102/comments/209215.htmlhttp://www.aygfsteel.com/rain1102/archive/2008/06/19/209215.html#Feedback4http://www.aygfsteel.com/rain1102/comments/commentRss/209215.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/209215.html今天在做面的时候遇C个问? 在用YUI的弹出页面的时?innerHTML在FireFox下面W一ơ可?然后再重新弹出页面的时候就无效?但在IE下面是好?代码如下:
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 发表评论
]]>
自定义鼠标提CZ?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2008/01/23/177315.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/177315.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2008/01/23/177315.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/177315.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/aggbug/177315.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-01-23 16:38 <a href="http://www.aygfsteel.com/rain1102/archive/2008/01/23/177315.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>可折叠区域实C?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2008/01/23/177308.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/177308.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2008/01/23/177308.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/177308.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/aggbug/177308.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2008-01-23 16:20 <a href="http://www.aygfsteel.com/rain1102/archive/2008/01/23/177308.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>snapl文章中的链接加上羃略图(教E?Q{载)http://www.aygfsteel.com/rain1102/archive/2007/12/20/168953.htmlEric.ZhouEric.ZhouThu, 20 Dec 2007 02:36:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/12/20/168953.htmlhttp://www.aygfsteel.com/rain1102/comments/168953.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/12/20/168953.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/168953.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/168953.html标放到链接上可以看到羃略图?br /> 效果演示?a target="_blank">本站首页

具体使用办法Q?br /> ?a target="_blank" rel="nofollow">snap|站可以甌CD늱g下Ş式的代码Q?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>前面可以了。(l测试,Z拖慢速度Q放?lt;/body>前也可以Q)

下面说说代码的修改:

1、用默认的代码Q鼠标移动到链接上时昄的效果是带搜索框的,但是可以通过修改代码来去掉搜索框Q先看效果对比:
snap

修改Ҏ是,获得代码中?strong>sb=1Ҏsb=0

2、默认代码效果是面中的所有链接都有鼠标划q时昄~略图效果?/strong>如果你想Ҏ个特定链接禁用羃略图效果Q可以对该链接加上一个分cL标识Q?br /> 例如链接

<a href="xxxx">xxx</a>
Q禁用羃略图的方法是写成
<a href="xxxx" class="snap_nopreview">xxx</a>

通常Q一个页面里大部分链接我们都不想加入~略囄Q所以上q办法有点烦琐了?br /> 其实可以通过修改代码中的ap=1?strong>ap=0来ə面的所有链接在默认情况下不昄~略图,q时只有链接写成以下格式的情况下才会有羃略图昄Q?br />

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

对于上述各种情况Q如果链接本w已l有了某个class分类Q比如已l分cMؓclass="123",可以?strong>I格来分隔,q赋予多个class分类Q比?br /> class="123 snap_nopreview"或者class="123 snap_preview"

以上为本人的一点小心得,希望对各位看官有点帮助?br /> --------------------------------------------------------------------------------------------------------

对于我用的MTQ可以对模版中的评论者网站链接Ş式加入一个class="snap_preview"来实现对评论者网站界面的初步预览Q我觉得是个不错的小工具?br /> 当然其他E序Q也可以做相应的修改实现该效果。我׃再多说了?/p>

Eric.Zhou 2007-12-20 10:36 发表评论
]]>
W合web标准插入Flash的方?/title><link>http://www.aygfsteel.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://www.aygfsteel.com/rain1102/archive/2007/12/17/168268.html</guid><wfw:comment>http://www.aygfsteel.com/rain1102/comments/168268.html</wfw:comment><comments>http://www.aygfsteel.com/rain1102/archive/2007/12/17/168268.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rain1102/comments/commentRss/168268.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rain1102/services/trackbacks/168268.html</trackback:ping><description><![CDATA[<a target="_blank">W合web标准插入Flash的方?/a><img src ="http://www.aygfsteel.com/rain1102/aggbug/168268.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rain1102/" target="_blank">Eric.Zhou</a> 2007-12-17 16:57 <a href="http://www.aygfsteel.com/rain1102/archive/2007/12/17/168268.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用CSS控制囄寚w方式http://www.aygfsteel.com/rain1102/archive/2007/12/15/168013.htmlEric.ZhouEric.ZhouSat, 15 Dec 2007 15:04:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/12/15/168013.htmlhttp://www.aygfsteel.com/rain1102/comments/168013.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/12/15/168013.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/168013.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/168013.html

Eric.Zhou 2007-12-15 23:04 发表评论
]]>
CSS样式切换技?- 动态更换网色彩皮??http://www.aygfsteel.com/rain1102/archive/2007/11/28/163809.htmlEric.ZhouEric.ZhouWed, 28 Nov 2007 12:58:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/11/28/163809.htmlhttp://www.aygfsteel.com/rain1102/comments/163809.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/11/28/163809.html#Feedback4http://www.aygfsteel.com/rain1102/comments/commentRss/163809.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/163809.html样式与数据分L带来的不只是W合标准q样的简单,样式既然与数据分那么样式的切换则变得理所当然的了Q但是网上这L中文教程实在是太了Q所以我攉了一部分中外|站已经实现的技术资料整理出来供|友参考?/span>

首先要具备不同内容的CSS文gQ最好每个文件代表一U样式,或是代表需要作出变动的部分Q。这里以三个ZQ?/span>

W一个是背景为红色的CSS文gQ?/span>red.cssQ?/span>CSS中的内容为:

Copy code

body {background-color:red;}

W二个是背景为绿色的CSS文gQ?/span>green.cssQ?/span>CSS中的内容为: 

Copy code

body {background-color:green;}

W三个是背景为黄色的CSS文gQ?/span>yellow.cssQ?/span>CSS中的内容为:

Copy code

body {background-color:yellow;}

然后?/span>xthml文g中加入这三个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"/>


q三个中除了title不一样外q有一个地Ҏ所不同Q那是REL。第一个与W三个都?/span>alternate stylesheet只有W二个是stylesheet。这W二个就是当然样式?/span>

在链接下面再导入一?/span>JS文gQ用来控制这个样式切?/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="U色样式"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('green'); return false;" title="
l色样式"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('yellow'); return false;" title="
黄色样式"></a>
<a href="javascript :void()" onclick="setActiveStyleSheet('none'); return false;" title="
没有样式"></a>

好了发布试试炚w三个切换链接Q是不是已经切换了样式?


补遗Q带有记忆功能的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 发表评论
]]>
对li元素q行样式?实现水^攄http://www.aygfsteel.com/rain1102/archive/2007/11/22/162471.htmlEric.ZhouEric.ZhouThu, 22 Nov 2007 13:37:00 GMThttp://www.aygfsteel.com/rain1102/archive/2007/11/22/162471.htmlhttp://www.aygfsteel.com/rain1102/comments/162471.htmlhttp://www.aygfsteel.com/rain1102/archive/2007/11/22/162471.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/162471.htmlhttp://www.aygfsteel.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与Visibility的不?http://www.aygfsteel.com/rain1102/archive/2006/10/16/75390.htmlEric.ZhouEric.ZhouMon, 16 Oct 2006 04:58:00 GMThttp://www.aygfsteel.com/rain1102/archive/2006/10/16/75390.htmlhttp://www.aygfsteel.com/rain1102/comments/75390.htmlhttp://www.aygfsteel.com/rain1102/archive/2006/10/16/75390.html#Feedback0http://www.aygfsteel.com/rain1102/comments/commentRss/75390.htmlhttp://www.aygfsteel.com/rain1102/services/trackbacks/75390.htmlcss中的display与visibility——大多数人很Ҏcss属性display和visibilityhQ它们看似没有什么不同,其实它们的差别却是很大的?visibility属性用来确定元素是昄q是隐藏Q这用visibility="visible|hidden"来表C,visible表示昄Qhidden表示隐藏。当visibility被设|ؓ"hidden"的时候,元素虽然被隐藏了Q但它仍然占据它原来所在的位置?/div>

Eric.Zhou 2006-10-16 12:58 发表评论
]]>
վ֩ģ壺 ³ľ| ƺ| | ǿ| Ϸ| | ۰| Ԫ| | | | Ͳ| | | | | ɳƺ| | | Ӵ| | â| β| | ˮ| ұ| | ɽ| ľ| | | ˳| | | ۩| | ʯɽ| ƽ| | ɳ| |