前端随笔

url取值 function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }

 

多行文字居中 .book-detail-store-item { width: 50px; height:50px; line-height: 25px; font-size: 12px; } /*flex垂直居中对齐*/ .align-center-vertical{ display: flex; align-items: center; justify-content: space-around; flex-direction: column; } 文字超出隐藏加省略号 一行 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 三行 display: -webkit-box; -webkit-box-orient: vertical;

posted @ 2018-03-04 11:59  无棱的山  阅读(98)  评论(0)    收藏  举报