摘要: <style> .jindu { width: 400px; height: 30px; background:blue; position: relative; } .zhi{ height: 30px; width: 30%; background: red; float: left; } .s 阅读全文
posted @ 2017-08-16 22:11 透明的月儿 阅读(141) 评论(0) 推荐(0)
摘要: var $bun=$('.bun');var $do=$('.do');$bun.click(function () { var value=$do.css('display') == 'none'?'block':'none'; $do.css('display',value);})或者$do.p 阅读全文
posted @ 2017-08-16 22:10 透明的月儿 阅读(126) 评论(0) 推荐(0)
摘要: .box{ display: table-cell; vertical-align: middle; text-align: center; } .box img{ width: 200px; height: 100px; } 只要是display: inline-block;的元素,都可以用类似img垂直居中。 .box{ width: 700... 阅读全文
posted @ 2017-08-16 15:35 透明的月儿 阅读(167) 评论(0) 推荐(0)
摘要: overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 阅读全文
posted @ 2017-08-16 15:19 透明的月儿 阅读(190) 评论(0) 推荐(0)