日期:2014-05-19  浏览次数:20559 次

如何为GridView自带的分页按钮添加CSS样式属性
希望能给出示例代码,多谢!

------解决方案--------------------
先给你个.css 文件 你保存 在页面引用

BODY
{
color: #000000;
FONT-FAMILY: "Verdana ", "Arial ", "Helvetica ", "sans-serif ";
line-height: 125%;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
margin-top:0px;
font-size: 9pt;
background-color:White;
font-size:9pt;
text-align:center;
height:100%;
}

A.sort
{
FONT-SIZE: 10.2pt;
COLOR: white;
TEXT-DECORATION: none
}

A:link
{
font-size: 9pt;
color: #006699;
line-height: 15pt;
font-family: 宋体;
text-decoration: underline;
}

A:visited
{
FONT-SIZE: 9pt;
COLOR: #006699;
LINE-HEIGHT: 15pt;
FONT-FAMILY: 宋体;
TEXT-DECORATION: underline;
}

A:active
{
FONT-SIZE: 9pt;
COLOR: #ff0000;
LINE-HEIGHT: 15pt;
FONT-FAMILY: 宋体;
TEXT-DECORATION: none;
}

A:hover
{
FONT-SIZE: 9pt;
COLOR: #ff0000;
LINE-HEIGHT: 15pt;
FONT-FAMILY: 宋体;
TEXT-DECORATION: none;
}

A.Linkword:link
{

COLOR: blue;
LINE-HEIGHT: 15pt;
FONT-FAMILY: 宋体;
TEXT-DECORATION: underline
}

A.Linkword:visited
{

COLOR: blue;
LINE-HEIGHT: 15pt;
FONT-FAMILY: 宋体;
TEXT-DECORATION: none
}
.a1
{
BACKGROUND-IMAGE:url( '../images/title.gif ');
COLOR:#000000;
cursor:pointer;
}
.a2{BACKGROUND-COLOR: #C6C3C6;}
.a3{BACKGROUND-COLOR: #FFFFFF;}
.a4{BACKGROUND-COLOR: #EFEFEF;}
TABLE
{
FONT-SIZE: 12px;
border-color:White;
border-bottom-color:White;
border-left-color:White;
border-right-color:White;
border-top-color:White;
font-family: "宋体 ";
}

TR
{
FONT-SIZE: 9pt
}

TD
{
FONT-SIZE: 9pt
}

BUTTON.button
{
FONT-SIZE: 9pt;
HEIGHT: 20px;
border-style:outset;
border-width:thick;
}

INPUT
{
FONT-SIZE: 9pt;
border-style:groove;
border-width:thin
}

FORM
{
PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px;
MARGIN: 0px;
PADDING-TOP: 0px
}

SELECT
{
FONT-SIZE: 9pt
}

TEXTAREA
{
FONT-SIZE: 9pt
}

.ArticleContent
{
FONT-SIZE: 9pt; line-height:200%
}

.white
{
font-family: "宋体 ";
font-size: 9pt;
line-height: 15pt;
color: #FFFFFF;
text-decoration: none
}

.black9
{
font-family: "宋体 ";
font-size: 9pt;
line-height: 15pt;
color: #000000;
text-decoration: none
}

.gray9
{
font-family: "宋体 ";
font-size: 9pt;
line-height: 15pt;
color: gray;
text-decoration: none
}

.black10
{
font-family: "宋体 ";
font-size: 10.5pt;
line-height: 15pt;
color: #000000;
text-decoration: none
}

.caption {
font-family: verdana, geneva, helvetica, arial, sans-serif;