CSS按钮悬浮样式变化

html-css05

CSS按钮悬浮样式变化,第1张

用background-position去取背景图片的坐标 a{background:url(

?t=1315462873338) no-repeat -6px -3pxdisplay:blockwidth:79pxheight:33pxtext-indent:-9999px}a:hover{background-position:-87px -3px}登陆

提供三种自定义导航栏悬浮的方法

在自定义组件中设定css 样式:

利用 position: fixed

利用 position: fixed