一些开发笔记

FF 和 IE 下透明的滤镜:

filter: Alpha(opacity=10); -moz-opacity:.1; opacity:0.1;

分类型表格,即 Panel:

<fieldset>
<legend>item</legend>
content
</fieldset>


CSS 中用 # 表示ID.用expression 将JS、Css结合起来,如:

 <html>
   <head>
       <style type="text/css">
           input#Text1 {star : expression(onmouseover=function()
           {this.style.backgroundColor="#FFFF00"},
           onmouseout=function(){this.style.backgroundColor="#FFFFFF"}) }
      </style>
   </head>
   <body>
         <input type="text" ID="Text1" NAME="Text1"> 
         <input type="text" ID="Text2" NAME="Text2"> 
     </body>
 </html>


li的横排用 style="FLOAT:right"  参考: http://www.tblog.com.cn/article.asp?id=289

 

Linq 之类型转换 ToArray 陷井。像下面:

 

            List<int> s = new List<int>();
            s.Add(
1);
            s.Add(
2);

            
            
//string[] strArray = s.ToArray<string>();      //这样, 就会出错。它会遍历执行  (string)1 ;

            
string[] strArray = s.Select(pdd => pdd.ToString()).ToArray();      //它会遍历执行 1.ToString()
            Console.WriteLine(string.Join(",", strArray));

 

在线生成 favicon.ico  图标. http://www.html-kit.com/favicon/-/replay/

 

UpdatePannel 里不能改变Render的字数.

posted @ 2008-09-03 02:33  NewSea  阅读(323)  评论(0编辑  收藏  举报