css 设置好TD 同时存在treeview与gridview的时候
让treeview不显示td网格线 gridview显示网格线
HTML
<style type="text/css">
TD
{
font-size: 9pt;
color: #000000;
font-family: 宋体;
border-right: #6C9FDB 0px solid;
border-top: #6C9FDB 0px solid;
border-left: #6C9FDB 0px solid;
border-bottom: #6C9FDB 0px solid;
border-collapse: collapse;
}
</style>
.cs
protected void myDataGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[1].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[2].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[3].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[4].Attributes.Add("style", "border:1px #6C9FDB");
&
相关文档:
方法超级简单三句话:
第一:做网站用IE7.0,这个版本是最标准的版本。先不要管别的浏览器是否兼容。
第二:网站做完,好了用IE6.0,IE8.0测试一下,好了,IE6.0有小部分变动,IE8.0惨目人睹,现在先来解决IE6.0的问题
IE6.0是现在最烂最垃圾的浏览器版本,o(︶ ......
Alert{
backgroundColor: #2791DB;
headerColors:#2791DB,#2791DB;
borderThicknessLeft:0;
borderThicknessRight:0;
borderThicknessTop:0;
font-size:14;
buttonStyleName: myCustomButtonStyleName;
}
.myCus ......
jsp页面调用 <link type="text/css" rel="stylesheet" href="css/style.css"/>样式表
其他样式都可以再页面正常显示
.button-qingchu{background:url(images/qingchu.jpg); width:70px; height:30px; border:0px;} 像这样的背景图片样式就显示不出图片是什么问题! Myeclipse 6.5
在html中都可以显示 在jsp中显示 ......
实现Gridview表头固定可以通过CSS来实现
将GridView放进一个Panel中,然后设置Panel可以有竖滚动条(参见我的另一篇为Gridview生成滚动条)。设置Gridview的Style为<HeaderStyle CssClass="GridViewHeader" />
.GridViewHeader {
position:relative ;
tabl ......