摘要:
max-width:79px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; 对于手机端的页面,很多时候宽度是使用百分比,当文字过长时,需要进行省略时,可以加上max-width和display:block。 阅读全文
摘要:
在不同的屏幕下,img使用不同的图片资源,已达到响应式图片的效果。HTML的部分: js部分:(function() { var currentSrc,oldSrc, imgEl; var showPicSrc = function() { oldSrc = currentSr... 阅读全文