html css:背景图片链接css写法
图片作为背景,并且是链接的写法。例如网站的logo图片。例如:做网站的logo图片
a {display: block;width: 170px;height: 42px;text-indent: -9999px;background: url(/skin/__g/img/ui/nav/v2_v6.png) 0 0 no-repeat;}
由于z-indent的原因做网站三个字是不会显示的。title属性是鼠标指向会显示的文本。
方法,就是css中display:block;或者display:inline-block;然后设置width和height。