由很多小的背景图像合成的大图被称为精灵图;
要想精确定位到精灵图中的某个小图,需要使用CSS的background-image、background-repeat和background-position。
在表格中border-collapse: collapse;可以让表格和 td盒子的边框进行合并
•CSS选择器的性能排序:
–1.id选择器(#myid)
–2.类选择器(.myclassname)
–3.标签选择器(div,h1,p)
–4.相邻选择器(h1+p)
–5.子选择器(ul < li)
–6.后代选择器(li a)
–7.通配符选择器(*)
–8.属性选择器(a[rel="external"])
9.伪类选择器(a:hover,li:nth-child)
网友评论