zoukankan      html  css  js  c++  java
  • 一個css控制的特效

    =======HTML========
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
      
    <tr>
        
    <td width="50%" valign="top">
        
    <div style='height:300;overflow: auto;'>
        
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
        
    <thead>
          
    <tr align="center">
            
    <th class="TdTitle_Blue">序號</th>
            
    <th class="TdTitle_Blue">單位名稱</th>
            
    <th class="TdTitle_Blue">編輯</th>
            
    <th class="TdTitle_Blue">刪除</th>
          
    </tr>
          
    <thead>
          
    <%
          
    set conn=opendb("EMSC")
          sql
    ="SELECT * FROM mis_unit"
          
    set rs=conn.execute(sql)
          
    if not rs.eof then
            i
    =1
            
    while not rs.eof
              
    if i mod 2 = 1 then
                className 
    = "tdodd"
              
    else
                className 
    = "tdeven"
              
    end if
          
    %>
          
    <tr>
            
    <td align="center" class="<%=className%>"><%=i%></td>
            
    <td  class="<%=className%>"><%=rs("unit")%></td>
            
    <td align="center"  class="<%=className%>"><img src="Images/icon_edit.gif" alt="編輯" width="19" height="13" onClick="onEdit('<%=rs("unit")%>');" style="cursor:hand;"></td>
            
    <td align="center"  class="<%=className%>"><img src="Images/icon_delete.gif" alt="刪除" width="15" height="15" onclick="onDelete('mas_unit_delete.asp?unit=<%=rs("unit")%>');" style="cursor:hand;"></td>
          
    </tr>
          
    <%
              rs.movenext
              i
    =i+1
            
    wend
          
    else
          
    %>
          
    <tr><td colspan="4" align="center">抱歉,暫無資料.</td></tr>
          
    <%
          
    end if
          rs.close()
          conn.close()
          
    %>
        
    </table>
        
    </div>
        
    </td>
        
    <td width="50%" valign="top"><table width="60%" border="0" align="center" cellpadding="3" cellspacing="0">
          
    <tr>
            
    <td colspan="2" class="TdTitle_Blue"><strong>新增/編輯單位</strong></td>
            
    </tr>
            
    <form name="frm" method="post" action="mas_unit_save.asp" onsubmit="return Checkinfo();">
          
    <tr>
            
    <td><div align="right">單位名稱:</div></td>
            
    <td><input name="unit" type="text" class="misInput" id="unit"></td>
          
    </tr>
          
    <tr>
            
    <td colspan="2"><div align="center">
              
    <input name="oldUnit" type="hidden" value="">
              
    <input name="Submit" type="submit" class="ButtonCom" value="新增">
              
    &nbsp;
              
    <input name="Submit2" type="reset" class="ButtonCom" value="重設">
            
    </div></td>
            
    </tr>
            
    </form>
        
    </table></td>
      
    </tr>
    </table>

    ====css======
    <style>
      thead th, thead th.locked 
    {
        background-color
    : #6487dc;
        color
    : #ffffff;
        position
    :relative;
        cursor
    : default;}
      thead th 
    {
        top
    : expression(this.parentElement.parentElement.parentElement.parentElement.scrollTop-2); 
        z-index
    : 20;}
    </style>

    申明

    非源创博文中的内容均收集自网上,若有侵权之处,请及时联络,我会在第一时间内删除.再次说声抱歉!!!

    博文欢迎转载,但请给出原文连接。

  • 相关阅读:
    sharepoint 2010 无法停止爬网 金大昊(jindahao)
    自定义搜索核心结果 金大昊(jindahao)
    fast search 爬网倒计时 金大昊(jindahao)
    workspace 限制 金大昊(jindahao)
    权限级别“打开项目”影响搜索结果 金大昊(jindahao)
    sharepoint 多服务器部署错误 金大昊(jindahao)
    大列表读取 金大昊(jindahao)
    sharepoint web servcie 金大昊(jindahao)
    SharePoint:pdf加密(RMS)方案 金大昊(jindahao)
    Infopath form to HTML using csharp 金大昊(jindahao)
  • 原文地址:https://www.cnblogs.com/Athrun/p/622820.html
Copyright © 2011-2022 走看看