易截截图软件、单文件、免安装、纯绿色、仅160KB

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");
    &


相关文档:

CSS Border


首先要说的是元素的border,元素的边框 (border) 是围绕元素内容和内边距的一条或多条线。CSS border 属性允许你规定元素边框的样式、宽度和颜色。
CSS 边框
在 HTML 中,我们使用表格来创建文本周围的边框,但是通过使用 CSS 边框属性,我们可以创建出效果出色的边框,并且可以应用于任何元素。
元素外边距内就是元素 ......

Jquery input控件的CSS控制

<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="Zend Studio" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery test</title>
</head>
<style>
.lastp{bord ......

怎么让input里的text和button使用不同的css样式


当你看到<input>这个html标签的时候,你会想到什么?一个文本框?一个按钮?一个单选框?一个复选框?……对,对,对,它们都对。也许你可能想不到,这个小小的input竟然可以创造出10个不同的东西,下面是个列表,看看,哪些是你没有想到的:
<input type="text" /> 文本框
<input type="p ......

css的一些技巧汇总2010 01 19

  .ie
  {
    border:1px solid #000000;
    width:100px;
    height:300px;
    font-size:12px;
  }
  .ie div
  { text-over:
    overflow:hidden;
    text-overflow:ellipsis ......

CSS 学习必备网站

W3School:http://www.w3school.com.cn/css/index.asp
英文版网址:http://www.w3schools.com/css/default.asp
作为初学者,这是一定要收藏的网站。这就相当于一本CSS入门教程,在此可以学习每个标签,属性的用法和实例,可以自动动手实践代码。除了CSS的知识,这个网站还包括了大量其他网页开发语言教程和其他知识。
CSS ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号