gpt4 book ai didi

asp.net - 如何从 css 获取图像信息到 MasterPage'gridview?

转载 作者:行者123 更新时间:2023-11-28 19:07:30 25 4
gpt4 key购买 nike

我尝试通过 GridView.css 将样式赋予母版页,我的母版页包括 3 页,还有 3 页源具有 GridView。我添加了 head 标签 css 文件:


也给属性我的 GridVew 来源:

  <asp:GridView ID="gwRehber" runat="server" AutoGenerateColumns="false" CssClass="tablestyle"            onrowcommand="gwRehber_RowCommand">            <AlternatingRowStyle CssClass="altrowstyle" />                        <HeaderStyle CssClass="headerstyle" />                        <RowStyle CssClass="rowstyle" />       <Columns>       <asp:TemplateField>       <ItemTemplate>        <asp:Button runat="server" ID="btnID" CommandName="select"  CommandArgument='<%# Eval("ID") %>'  Text="Seç" />       </ItemTemplate>       </asp:TemplateField>          <asp:BoundField DataField="Ad" HeaderText="Ad"  Visible="true"  />       <asp:BoundField DataField="BireyID" HeaderText="BireyID" Visible="false" />       <asp:BoundField DataField="Degistiren" HeaderText="Değiştiren" Visible="false" />        <asp:BoundField DataField="EklemeTarihi" HeaderText="EklemeTarihi" Visible="true" />       <asp:BoundField DataField="DegistirmeTarihi" HeaderText="Değiştirme Tarihi"  Visible="true" />       <asp:BoundField DataField="Ekleyen" HeaderText="Ekleyen" Visible="true" />        <asp:BoundField DataField="ID" HeaderText="ID" Visible="false" />       <asp:BoundField DataField="Imza" HeaderText="Imza" Visible="true" />        <asp:BoundField DataField="KurumID" HeaderText="KurumID" Visible="false" />       </Columns>       </asp:GridView>/code>

alt text

最佳答案

您的图片路径不正确。它们应该基于 CSS 文件的位置。将它们更改为 ../Img/sprite.png 它应该可以工作。

关于asp.net - 如何从 css 获取图像信息到 MasterPage'gridview?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2594024/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com