只允许一行显示,要根据宽度显示完整或者省略的状态,示例如下:

<style>
.test{width:100%;}
.test li a {color: #666666;display: block;float: left;overflow: hidden;t[......]

阅读全文