摘要:
CSS使用方法的优先级1、行内样式:在各个元素内写样式2、页内样式:在网页上创建样式表,直接写在HTML页面中的 3、外部样式:将网页链接到外部样式表css选择器优先级1、ID选择器优先级高于class选择器,如#div高于.div2、层级深的定义优先级更高,如#div .img高于.img在... 阅读全文
摘要:
1、单行截断div{text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden;white-space:nowrap;-moz-white-space:nowrap;-o-white-space:nowrap;width:100p... 阅读全文