zoukankan      html  css  js  c++  java
  • js 实现 datagrid 鼠标移动时datagrid 表的该变

    private void DataGridLogininfo_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) 
      

       ListItemType itemType 
    = e.Item.ItemType; 
       
    if (itemType == ListItemType.Item ) 
       

         
        e.Item.Attributes[
    "onmouseout"= "javascript:this.style.backgroundColor='#dedfde';"
        e.Item.Attributes[
    "onmouseover"= "javascript:this.style.backgroundColor='#fff7ce';cursor='hand';" ; 

       }
     
       
    else if( itemType == ListItemType.AlternatingItem) 
       

        e.Item.Attributes[
    "onmouseout"= "javascript:this.style.backgroundColor='#ffffff';"
        e.Item.Attributes[
    "onmouseover"= "javascript:this.style.backgroundColor='#fff7ce';cursor='hand';" ; 
       }
     
      }
     
  • 相关阅读:
    Go语言学习笔记(3)
    Haskell语言学习笔记(97)Phantom Type
    Rust语言学习笔记(12)
    堆排序 Rust实现
    Rust 智能指针(Rc)
    Rust 泛型
    Rust 枚举
    Rust 结构体
    Rust 引用
    二叉搜索树
  • 原文地址:https://www.cnblogs.com/gwazy/p/111118.html
Copyright © 2011-2022 走看看