当前位置:编程学习 > C#/ASP.NET >>

VS2005中,怎样设置frameset滚动条的色彩和样式?

谢谢了,网上说的都不起作用, --------------------编程问答--------------------  <STYLE>
BODY{BORDER-LEFT: #ECF1F4 7px solid;BORDER-RIGHT: #ECF1F4 7px solid;margin:0;                   /*控制滚动条左右侧实线颜色*/
overflow-x:hidden;                /*隐藏底部的横向滚动条*/
scrollbar-arrow-color: #f4ae21;   /*三角箭头的颜色*/
scrollbar-face-color: #333;       /*立体滚动条的颜色*/
scrollbar-3dlight-color: #666;    /*立体滚动条亮边的颜色*/
scrollbar-highlight-color: #666;  /*滚动条空白部分的颜色*/
scrollbar-shadow-color: #999;     /*立体滚动条阴影的颜色*/
scrollbar-darkshadow-color: #666; /*滚动条强阴影颜色*/
scrollbar-track-color: #666;      /*立体滚动条背景颜色*/
scrollbar-base-color: #f8f8f8;    /*滚动条的基本颜色*/
}
</STYLE> --------------------编程问答-------------------- Over Desc. is Right --------------------编程问答-------------------- BODY
{
    FONT-FAMILY: "宋体";
    FONT-SIZE: 9pt;
    BACKGROUND-COLOR: #ffffff;
    COLOR: #000000;
    LINE-HEIGHT: 150%;

font-size: 12px;
color: 333333;
       scrollbar-face-color: #F6A448;
 scrollbar-highlight-color: #E2E2E0; 
scrollbar-shadow-color: #CCCCCC; 
scrollbar-track-color: #F2D7AD;
scrollbar-darkshadow-color: #FFCC66;
scrollbar-arrow-color:#FD5503; 
scrollbar-base-color:#CCCCCC
}
BODY.tvadmin
{
    FONT-FAMILY: "宋体";
    FONT-SIZE: 9pt;
    BACKGROUND-COLOR: #f1f8ff;
    COLOR: #ffffff;
    LINE-HEIGHT: 150%;
    MARGIN-TOP: 0px;
    MARGIN-LEFT: 0px;
    MARGIN-RIGHT: 0px;
}
BODY.nomargin
{
    FONT-FAMILY: "宋体";
    FONT-SIZE: 9pt;
    COLOR: #000000;
    LINE-HEIGHT: 150%;
    MARGIN-TOP: 0px;
    MARGIN-LEFT: 0px;
    MARGIN-RIGHT: 0px;
}
DIV
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}
HR
{
COLOR: #FF6600;

}
HR.row
{
    BORDER-TOP: 1px;
    COLOR:#EEEEEE;
}

PRE
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

TD
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

TH
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

TABLE
{
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%;
}

TABLE.dataclass
{
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%;
}

TD.title
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #CCCCCC;
    BORDER-BOTTOM: black 1px solid;
    BORDER-TOP: white 1px solid;
    COLOR: #228b22;
    LINE-HEIGHT: 150%
}

TR.row
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #EEEEEE;
    BORDER-BOTTOM: #708090 1cm solid;
    LINE-HEIGHT: 150%
}
TD.row
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #FFFFFF;
    BORDER-BOTTOM: #708090 1px groove;
    LINE-HEIGHT: 150%
}
TD.row1
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #EEEEEE;
    LINE-HEIGHT: 150%
}
TD.left
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #FFFFFF;
    BORDER-BOTTOM: 1px groove #CCCCCC;
    LINE-HEIGHT: 150%
}
TD.leftbak
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #00b8d8;
    BORDER-BOTTOM: #708090 1px groove;
    LINE-HEIGHT: 150%
}
TD.right
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #CAF5FB;
    LINE-HEIGHT: 150%
}
TD.bottom
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #D6E7EF;
    BORDER-BOTTOM: black 1px solid;
    LINE-HEIGHT: 150%;
    TEXT-ALIGN: right;
}
P.title
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 10pt;
    FONT-WEIGHT: bold
}

P
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

LI
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

CAPTION
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

INPUT
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
}

SELECT
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%;
}

TEXTAREA
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

OPTION
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%;

}

FORM
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}

UL
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    LINE-HEIGHT: 150%
}
A
{
    COLOR:  #ff6600;
    TEXT-DECORATION: none
}

A:hover
{
    COLOR:#FFDE01;
    TEXT-DECORATION: underline
}

LI
{
    LIST-STYLE: disc
}
.boxborder5
{
    BACKGROUND-COLOR: #ffffff;
    BORDER-BOTTOM: #9999ff 1px solid;
    BORDER-LEFT: #9999ff 0px solid;
    BORDER-RIGHT: #9999ff 0px solid;
    BORDER-TOP: #00cc00 0px solid;
    COLOR: #ff6600
}
.titlebar{
width: 100%;
padding-top: 5px;
height: 0%;
border: 0px solid;
word-spacing: normal;
letter-spacing: normal;
padding-left: 10px;
background-position: left top;
font-size: 14px;
font-style: normal;
line-height: normal;
font-weight: bolder;
font-variant: normal;









}
.tabletitletext{
font-family:"Arial";
font-weight: normal;

}
TABLE.table易做图{
margin-top: 2px;
margin-bottom: 2px;
border-collapse:collapse;
padding-bottom:3px;

}
TABLE.tableframe{
background-color: #FFFFFF;
margin-top: 5px;
border-collapse:collapse;
border: 1px solid #CCCCCC;

}
TR.Listtitle
{
    font: normal 12px "宋体";
    BACKGROUND: #efefef;
    BORDER-BOTTOM: #7C9CCF 1px solid;
    BORDER-TOP: #7C9CCF 1px solid;
    COLOR: #000000;
    text-align:center;
    vertical-align:center;
    height:18px;
}
TR.ListtitleBorder
{
    FONT-FAMILY: 宋体;
    FONT-SIZE: 9pt;
    BACKGROUND: #636d7b;
    BORDER-BOTTOM: #7C9CCF 1px solid;
    BORDER-TOP: #7C9CCF 1px solid;
    BORDER-Left: #7C9CCF 1px solid;
    BORDER-Right: #7C9CCF 1px solid;
    COLOR: #ffffff;
    text-align:center;
    vertical-align:center;
    height:18px;
}
TR.Listrow2
{
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt;
    BACKGROUND: #f7f7f7;
}
TR.Listrow1
{
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt;
    BACKGROUND: #f7f7f7;
}
TR.Listrow1_1
{
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt;
    BACKGROUND: #ffffff;
}
TR.Listrow3
{
    FONT-FAMILY: Arial;
    FONT-SIZE: 9pt;
    BACKGROUND: #ffffff;
}

td.ListCellTitle
{
border-style: solid;
border-width: 1px 1px 1px 0px;
border-color:#999999;
padding:2px 2px 2px 2px;

}
td.ListCellRow
{
  border-style: solid;
border-width: 1px;
border-color:#999999;
padding:0px 4px 0px 4px;
}
Td.listtail
{
    FONT-SIZE: 9pt;
    BACKGROUND: #ffffff;
    BORDER-BOTTOM: #999999 1px solid;
}

TABLE.InputFrameMain{
  MARGIN-TOP:15px;
  margin-BOTTOM:5px;
background-color: #f7f7f7;
border-style: solid;
border-width: 1px;
border-color:#9C9C9C;
border-collapse:collapse;
}

}
INPUT.buttonqs
{
Height:21px;
width:78;
BACKGROUND-COLOR: #efefef;
COLOR: #333333;
width:78px;
PADDING-LEFT: 2px;
PADDING-RIGHT: 0px;
PADDING-TOP: 4px;
PADDING-BOTTOM: 0px;
CURSOR: hand;
FONT-FAMILY: "宋体";
FONT-SIZE: 9pt;
border: 1px solid #CCCCCC;

}
INPUT.buttonqsq
{
Height:21px;

BACKGROUND-COLOR: #efefef;
COLOR: #333333;
width:56px;
PADDING-LEFT: 2px;
PADDING-RIGHT: 0px;
PADDING-TOP: 4px;
PADDING-BOTTOM: 0px;
CURSOR: hand;
FONT-FAMILY: "宋体";
FONT-SIZE: 9pt;
border: 1px solid #CCCCCC;

}
INPUT.input
{
border-bottom : 1px solid #888888;
border-top : 1px solid #888888;
border-right : 1px solid #888888;
border-left : 1px solid #888888;
font-family : verdana;
font-size:9pt;


}
INPUT.dropdownlist
{
border-bottom : 1px solid #888888;
border-top : 1px solid #888888;
border-right : 1px solid #888888;
border-left : 1px solid #888888;
font-family : verdana;
font-size:9pt;
}


INPUT.inputreadonly
{
    BACKGROUND-COLOR: transparent;
    BORDER-STYLE:solid solid solid solid;
    border-width:0px 0px 0px 0px;
    border-color:#888888;
    color:#000000;
    LEFT: 0px;
    TOP: 0px;
    VERTICAL-ALIGN: center
}
.LinkText
{
COLOR:#0065CE;
CURSOR:HAND;
}
.getdate
{
    cursor:hand;
    behavior:url(css/getdate_vbs.htc);
}
.button {
cursor:cross;BACKGROUND-COLOR: transparent; FONT-SIZE: 12px; color:#000000; PADDING-TOP: 2px
}
.texttable {
height: 20px;
width: 70px;
}
div
{
font-size: 9pt;

letter-spacing:1px;
word-break:break-all;
}
.h14c {
font-size: 14px;
font-weight: bold;
color: #FF9933;
}
.h12c {
font-size: 12px;
font-weight: bold;
color: #FF0000;
text-align: center;
}
.l12 {
font-size: 12px;
color: #95A48D;
}

把这些写在一个css文件中,请用进来就可以了,
自己去改颜色 --------------------编程问答-------------------- frameset不能包含在body内
所以ls的应该都不可以

--------------------编程问答-------------------- frameset不能包含在body内 
所以ls的应该
__________________________
这句说对了,上面的解答都不可以的,继续请教中... 
--------------------编程问答-------------------- 设置frameset滚动条,除了scrolling属性外,都是设置frame里链接页面的滚动条
如下:
<frameset rows="109,*" framespacing="0" frameborder="0" border="false" id="FrmAll" scrolling="yes">
<frame name="FrmTop" scrolling="no" frameborder="0" framespacing="0" noresize="noresize" src="FrmTop.aspx"/>
<frameset cols="210,10,*" id="FrmBorder">
<frame name="FrmLeft" frameborder="0" marginwidth="0" marginheight="0" id="FrmLeft" src="FrmLeft.aspx"/>
<frame name="FrmMid"  frameborder="0"  marginwidth="0" marginheight="0"  scrolling="no" noresize="noresize" id="FrmMiddle" src="FrmMiddle.aspx" >
<frame name="FrmMain" scrolling="yes" marginwidth="0" id="FrmMain" marginheight="0" noresize="noresize" src="FrmMain.aspx"/>
</frameset>
</frameset>
要设置FrmLeft的滚动条,只要在FrmLeft.aspx页面的<head>和</head>间加入样式:
<style type="text/css" >
        html{            
            background-color:#ADD9E6;
    color:#000000;
    font-size:12px;
    font-family:SimSun;
    border-left:#ECF1F4 0px solid;
    border-right:#ECF1F4 0px solid;
    margin:0;                               /*控制滚动条左右侧实线颜色*/ 
            overflow-x:hidden;                      /*隐藏底部的横向滚动条*/ 
            scrollbar-arrow-color:#034079;          /*三角箭头的颜色*/ 
            scrollbar-3dlight-color:#ADD9E6;        /*立体滚动条亮边的颜色*/ 
            scrollbar-highlight-color:#89C4D5;      /*滚动条空白部分的颜色*/ 
            scrollbar-shadow-color:#89C4D5;         /*立体滚动条阴影的颜色*/ 
            scrollbar-darkshadow-color:#ADD9E6;     /*滚动条强阴影颜色*/ 
            scrollbar-track-color:#ADD9E6;          /*立体滚动条背景颜色*/ 
            scrollbar-base-color:#ADD9E6;           /*滚动条的基本颜色*/ 
       }
    </style>
你便会看到意象中的效果,祝你好运! --------------------编程问答-------------------- 这是asp得吗? --------------------编程问答-------------------- mark --------------------编程问答-------------------- 顶 ,这个可以用  --------------------编程问答-------------------- 还不错 可以用
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,