随笔-153  评论-235  文章-19  trackbacks-0
  2010年2月24日
如鼠标移到 class 为 box 的 div 标签中背景变色

.vbox div:hover{background: #ddd;}

据说 IE6.0、Firefox2.0、Opera 9.23都不支持

posted @ 2010-02-24 22:10 流浪汗 阅读(1915) | 评论 (0)编辑 收藏
想改 a  的默认方式,比如:链接不要下划线,鼠标移到上面时有划线。

css 如
a:hover {text-decoration: underline;}
a:link 
{text-decoration: none;}
a:visited 
{text-decoration: none;}

是没有达到鼠标称到上面有划线。

必须改为:
a:link {text-decoration: none;}
a:visited 
{text-decoration: none;}
a:hover 
{text-decoration: underline;}

a:hover 放到最后。
posted @ 2010-02-24 22:04 流浪汗 阅读(952) | 评论 (3)编辑 收藏