• DataGrid的走马灯效果


    把 DataDrid放到MARQUEE 里,注意,如果要放到一个td里时,td的长度要设置的

      <<MARQUEE onmouseover="this.stop()" onmouseout="this.start()" scrollAmount="3" scrollDelay="0"   direction="up" height="98">>
                  <asp:datagrid id="DgNews" runat="server" Width="400" AutoGenerateColumns="False" BorderWidth="0" Height="100" ShowHeader="False">
                   <Columns>
                    <asp:TemplateColumn HeaderText="新闻内容">
                     <HeaderStyle Width="70%"></HeaderStyle>
                     <ItemStyle Width="70%"></ItemStyle>
                     <ItemTemplate>
                      
                      <asp:Label ID="Label10" Text='<%#DataBinder.Eval(Container.DataItem,"XXSM")%>' Runat=server/>
                      (
                      <asp:Label ID="Label5" Font-Italic=True Text='<%#DataBinder.Eval(Container.DataItem,"XGRQ")%>' ForeColor=#ff7f66 Runat=server/>
                      )
                      <asp:Image ID="NewPic" Runat="server" ImageUrl="images/main/new.gif" Width="28" Height="11"></asp:Image>
                     </ItemTemplate>
                    </asp:TemplateColumn>
                   </Columns>
                  </asp:datagrid>
                 <</MARQUEE>>

  • 相关阅读:
    Java单链表的实现
    leetcode2
    Spring容器中Bean的生命周期
    my-leetcode
    Map及HashMap原理简述
    网站搭建:服务器+域名+备案
    浅谈X-UA-Compatible&viewport
    Hexo框架搭建个人博客
    Redis安装教程
    MySQL安装教程 --- 解压版
  • 原文地址:https://www.cnblogs.com/superch0054/p/4010258.html
Copyright © 2020-2023  润新知