Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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");
    &


Ïà¹ØÎĵµ£º

Alert ÖеÄ×ÖÌåͨ¹ýcssÉèÖÃ


Alert{
backgroundColor: #2791DB;
headerColors:#2791DB,#2791DB;
borderThicknessLeft:0;
borderThicknessRight:0;
borderThicknessTop:0;
            font-size:14;
            buttonStyleName: myCustomButtonStyleName;
}
.myCus ......

CSS»ù´¡Á·Ï°

-----------------------------------------------
Á´½ÓÍâÃæÎļþcss
<link href="layout.css" rel="stylesheet" type="text/css" />
-----------------------------------------------
дÎı¾ :  <div id="mainContent">
    <p>1Áй̶¨¿í¶È¾ÓÖÐ+Í·²¿+µ¼º½+β²¿—&mdash ......

Íæ×ªCSS£¬´Ó²ËÄñ¿ªÊ¼Ö® CSS×ÖÌåÑÕÉ«µÄÉèÖÃ

½ñÌìдÁËÒ»¸ö¼òµ¥µÄÍøÒ³£¬Çë¿´´úÂ룺
´íÎóµÄ£º
HTML´úÂ룺
½ñÌìµÄÈÕ×Ó
//CSS´úÂëʹÓÃÍⲿÒýÈëʽ

ÎҵļÒÏçÔÚ¿­Àï
CSS´úÂ룺
/* CSS Document */
body{
font-family:Arial, Helvetica, sans-serif;
font-size:20px;
color:red; /*ÒªµÄ¾ÍÊÇÕâÑùµÄЧ¹û£ºÉèÖÃ×ÖÌåÑÕɫΪºìÉ«*/
}
½á¹ûÏÔʾµÄ×ÖÌ ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ