css
ycchen
这个作者很懒,什么都没留下…
展开
-
css 省略号
text-overflow: ellipsis;display: block;white-space: nowrap;overflow: hidden;原创 2012-01-11 14:52:19 · 316 阅读 · 0 评论 -
隐藏radio的办法
需求不需要出现radio的按钮,不要占位html 短期课程 css.filter-off .form-item input { overflow: hidden; height:0; width:0; }display和visibility都会对label选择input有影响,所以只能用opacity,但是ie6下r原创 2012-03-02 15:09:17 · 4161 阅读 · 1 评论 -
仿facebook按钮
.btn { display:inline-block; border-top:1px solid #29447E; border-right:1px solid #29447E; border-bottom:1px solid #D8D8D8; margin:2px;}.btn a { display:inline-block; border-top:1px solid #8A原创 2012-03-15 22:29:02 · 364 阅读 · 0 评论 -
LESS中要调用方法要注意的问题
/* Contain floats: h5bp.com/q */.clearfix:before, .clearfix:after { content: ""; display: table; }.clearfix:after { clear: both; }.clearfix { *zoom: 1; }如果在less中.container { .clearfix;}某个c原创 2012-03-16 12:05:56 · 982 阅读 · 0 评论 -
ie6 a包span的问题
发现在ie6下,就算是display:block 的a元素,如果抱着span, 那么点击范围就只剩下span的范围了。直接对a使用zoom:1;解决!原创 2012-03-20 15:34:07 · 561 阅读 · 0 评论 -
firefox input line-height
firefox浏览器css:line-height: normal !important;无法改变,悲催http://www.cssnewbie.com/input-button-line-height-bug/原创 2012-04-28 16:08:09 · 607 阅读 · 0 评论 -
简单的按钮样式
/* 按钮样式适用于input, button, a, span, div */.s_button:visited,.s_button { padding:2px 6px; margin:0; border:1px solid #ccc; background:url(../img/btns.png) repeat-x 0 0; line-height:18px;原创 2012-04-28 17:18:42 · 823 阅读 · 0 评论