随笔分类 -  样式CSS

摘要:---------------------用样式居中+图片框------------------------- .photoimg img { border:1px #d8d8d8 solid; background-color:#eaeaea; padding:3px; } 阅读全文
posted @ 2008-09-20 11:42 Microbar 阅读(998) 评论(0) 推荐(0)
摘要:1、判断是否空或null: if (Object.Equals(result, null) || Object.Equals(result, "")) 2、转化为数组:string[] strArray = result.Split(new Char[] { '|' }); 3、Cookies使用:if (Request.Cookies["Vote" + id] != null) ... 阅读全文
posted @ 2008-08-05 23:09 Microbar 阅读(353) 评论(0) 推荐(0)
摘要:1、阴影 filter : progid:DXImageTransform.Microsoft.Shadow(color=#000000,direction=135,strength=5);} 阅读全文
posted @ 2008-03-21 10:51 Microbar 阅读(179) 评论(0) 推荐(0)
摘要:1.超链接访问过后hover样式就不出现的问题 被点击访问过的超链接样式不在具有hover和active了,很多人应该都遇到过这个问题,解决方法是改变CSS属性的排列顺序: L-V-H-A Code: ID做样式的设置 #topmenu { color:#FFFFFF; } #topmenu a:link,#topmenu a:visited,#topmenu a:hover,#top... 阅读全文
posted @ 2007-06-06 16:21 Microbar 阅读(450) 评论(0) 推荐(0)
摘要:改变背景图: btn.Style.Add("background-image", ""); 改变字体颜色: btn.Style.Add("color", ""); 图片固定比例缩放:CSS width:expression(this.width>300?"300px":this.width); height:expression(this.height>300?"300p... 阅读全文
posted @ 2007-06-06 11:05 Microbar 阅读(319) 评论(0) 推荐(0)