1.让一个div在另一个div里面水平居中显示使用
margin:0 auto;
2.让超出div的部分文字以省略号显示使用
overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
3.清除select原始样式使用
appearance:none; -moz-appearance:none; -webkit-appearance:none;
还需注意的是:在ios的系统中清除了select的原始样式,下下的箭头也会被清除掉;一般用图片来代替,跟左边的内容保持一点间隙
padding-right: 16px;
padding-right: 16px; appearance:none; -moz-appearance:none; -webkit-appearance:none; background: url("../../yht/images/select.png") no-repeat scroll right center transparent;