随笔分类 -  CSS

摘要:IE6双倍边距问题在IE6中查看时,却会发现左侧外边距100像素,被扩大到200个像素,加上display: inline可解决;.floatbox { float: left; width: 150px; height: 150px; margin: 5px 0 5px 100px; display: inline; }解决IE6不支持position:fixed;属性常规 position:fixed; 实现方法 例:右下角 <div id="top">...</div> 这个 HTML 元素使用的 CSS 代码如下: #top{ positio 阅读全文
posted @ 2013-05-03 21:38 jeffrey77 阅读(246) 评论(0) 推荐(0)
摘要:不同的浏览器对CSS的解释都有一点出入,特别是padding, line-height这些要细微控制的地方,下面的hack基本可以解决这个问题:• 在属性前加下划线(_),那么此属性只会被IE6解释• 在属性前加星号(*),此属性只会被IE7解释• 在属性值后面加"\9",表示此属性只会被IE8解释各浏览器CSS hack兼容表:IE6IE7IE8FirefoxChromeSafari!importantYY_Y*YY*+Y\9YYY\0Ynth-of-type(1)YY#test{color:red; /* 所有浏览器都支持 */color:red !important; 阅读全文
posted @ 2013-02-28 11:54 jeffrey77 阅读(167) 评论(0) 推荐(0)
摘要:1.<img>控件 加上runat="server"修改后:<img src="images/footlogo.jpg" runat="server" />2.<a>控件加上runat="server"修改后:<a href="Report/WCDMAHSDPA.aspx" runat="server">WCDMA HSDPA</a>3.javascript路径的问题,加一段<%=Request.Applica 阅读全文
posted @ 2013-02-28 10:52 jeffrey77 阅读(249) 评论(0) 推荐(0)
摘要:官网http://twitter.github.com/bootstrap/index.html中文文档http://wrongwaycn.github.com/bootstrap/docs/index.html简介http://www.w3cplus.com/css/bootstrap-twitter案例http://www.jshint.com/http://www.fleetio.com/index2https://kippt.com/http://soundready.fm/皮肤http://wrapbootstrap.com/http://bootswatch.com/http:// 阅读全文
posted @ 2012-10-26 13:07 jeffrey77 阅读(398) 评论(0) 推荐(0)
摘要:当table中没有内容时,列的边框会显示不出来。下面的设置可以解决该问题。table{ border-collapse:collapse;}table td{ empty-cells:show;} 阅读全文
posted @ 2012-05-29 17:36 jeffrey77 阅读(575) 评论(0) 推荐(0)