样色设置

1.超链接访问过后hover样式就不出现的问题

被点击访问过的超链接样式不在具有hover和active了,很多人应该都遇到过这个问题,解决方法是改变CSS属性的排列顺序: L-V-H-A

Code:

<style type="text/css">
<!--
a:link {}
a:visited {}
a:hover {}
a:active {}
-->
</style>

ID做样式的设置
#topmenu
{
 color:#FFFFFF;
}
#topmenu a:link,#topmenu a:visited,#topmenu a:hover,#topmenu a:active
{
 color:#FFFFFF;
 text-decoration: none;
}


2、为什么web标准中IE无法设置滚动条颜色了

解决办法是将body换成html

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
html {
     scrollbar-face-color:#f6f6f6;
     scrollbar-highlight-color:#fff;
     scrollbar-shadow-color:#eeeeee;
     scrollbar-3dlight-color:#eeeeee;
     scrollbar-arrow-color:#000;
     scrollbar-track-color:#fff;
     scrollbar-darkshadow-color:#fff;
     }

-->
</style>

3,WORD-WRAP: normal 超出就隐藏  break-word超出会换行

使DIV屏幕居中的方法 
#master_header
{
 margin: -1px auto 0 auto;
 width: 800px;
}

posted @ 2007-06-06 16:21  Microbar  阅读(450)  评论(0)    收藏  举报