没事件为什么UI自动可以加载文字
没有事件为什么UI自动可以加载文字各位大神,请教一下ul classdaohangli classnav-1a hrefDef
没有事件为什么UI自动可以加载文字 各位大神,请教一下 <ul class="daohang"> <li class="nav-1"><a href="Default.aspx"></a></li> <li class="nav-2"><a href="about.aspx"></a></li> <li class="nav-3"><a href="newslist.aspx"></a></li> <li class="nav-4"><a href="product.aspx"></a></li> <li class="nav-5"><a href="jishu.aspx"></a></li> <li class="nav-6"><a href="gongzheng.aspx"></a></li> <li class="nav-7"><a href="daililist.aspx"></a></li> <li class="nav-8"><a href="kefu.aspx"></a></li> <li class="nav-9"><a href="zhaopin.aspx"></a></li> <li class="nav-10"><a href="book.aspx"></a></li> <li class="nav-11"><a href="lianxi.aspx"></a></li> </ul> 这个类只指定了类名和页面,但是加载的时候导航栏却有文字,比如‘nav-2’的是关于我们。 请教这个事件写在哪怎么找也找不到。
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="top.ascx.cs" Inherits="WebUserControl_top" %> <div class="main"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="256"> <param name="movie" value="flash/bannar.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <embed src="flash/bannar.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="256"></embed> </object> <ul class="daohang"> <li class="nav-1"><a href="Default.aspx"></a></li> <li class="nav-2"><a href="about.aspx"></a></li> <li class="nav-3"><a href="newslist.aspx"></a></li> <li class="nav-4"><a href="product.aspx"></a></li> <li class="nav-5"><a href="jishu.aspx"></a></li> <li class="nav-6"><a href="gongzheng.aspx"></a></li> <li class="nav-7"><a href="daililist.aspx"></a></li> <li class="nav-8"><a href="kefu.aspx"></a></li> <li class="nav-9"><a href="zhaopin.aspx"></a></li> <li class="nav-10"><a href="book.aspx"></a></li> <li class="nav-11"><a href="lianxi.aspx"></a></li> </ul> </div> <div class="main yitiao"> <span>最新公告: <marquee direction="left" scrollamount="1" scrolldelay="100" onMouseOver="this.scrollDelay=500" onMouseOut="this.scrollDelay=1" style="width: 382px"> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <a href="newsmore.aspx?id=<%#Eval("id") %>" ><%#Eval("title") %></a>| </ItemTemplate> </asp:Repeater></marquee> </span> <ul> <li class="sousuobiaoti">站内搜索:</li> <li><asp:TextBox ID="TextBox1" runat="server" Text="请输入查找内容"></asp:TextBox> </li> <li class="sousuobutton"> <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">搜索</asp:LinkButton></li> </ul> </div> using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class WebUserControl_top : System.Web.UI.UserControl { protected string newstitle; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sql = "select top 5 * from [newscontent] where hit=5 ORDER BY [time] DESC"; DB.bindrepeater(sql, Repeater1); } } protected void LinkButton1_Click(object sender, EventArgs e) { if (this.TextBox1.Text != "") { string key = this.TextBox1.Text; Response.Redirect("product.aspx?key=" + key + ""); } } }
[解决办法] Ctrl+F --》整个解决方案--》搜索"关于我们"
[解决办法] 引用: 各位大神,请教一下 <ul class="daohang"> <li class="nav-1"><a href="Default.aspx"></a></li> <li class="nav-2"><a href="about.aspx"></a></li> <li class="nav-3"><a href="newslist.aspx"></a></li> <li class="nav-4"><a href="product.aspx"></a></li> <li class="nav-5"><a href="jishu.aspx"></a></li> <li class="nav-6"><a href="gongzheng.aspx"></a></li> <li class="nav-7"><a href="daililist.aspx"></a></li> <li class="nav-8"><a href="kefu.aspx"></a></li> <li class="nav-9"><a href="zhaopin.aspx"></a></li> <li class="nav-10"><a href="book.aspx"></a></li> <li class="nav-11"><a href="lianxi.aspx"></a></li> </ul> 这个类只指定了类名和页面,但是加载的时候导航栏却有文字,比如‘nav-2’的是关于我们。 请教这个事件写在哪怎么找也找不到。 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="top.ascx.cs" Inherits="WebUserControl_top" %> <div class="main"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="256"> <param name="movie" value="flash/bannar.swf" /> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <embed src="flash/bannar.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="256"></embed> </object> <ul class="daohang"> <li class="nav-1"><a href="Default.aspx"></a></li> <li class="nav-2"><a href="about.aspx"></a></li> <li class="nav-3"><a href="newslist.aspx"></a></li> <li class="nav-4"><a href="product.aspx"></a></li> <li class="nav-5"><a href="jishu.aspx"></a></li> <li class="nav-6"><a href="gongzheng.aspx"></a></li> <li class="nav-7"><a href="daililist.aspx"></a></li> <li class="nav-8"><a href="kefu.aspx"></a></li> <li class="nav-9"><a href="zhaopin.aspx"></a></li> <li class="nav-10"><a href="book.aspx"></a></li> <li class="nav-11"><a href="lianxi.aspx"></a></li> </ul> </div> <div class="main yitiao"> <span>最新公告: <marquee direction="left" scrollamount="1" scrolldelay="100" onMouseOver="this.scrollDelay=500" onMouseOut="this.scrollDelay=1" style="width: 382px"> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <a href="newsmore.aspx?id=<%#Eval("id") %>" ><%#Eval("title") %></a>[解决办法] </ItemTemplate> </asp:Repeater></marquee> </span> <ul> <li class="sousuobiaoti">站内搜索:</li> <li><asp:TextBox ID="TextBox1" runat="server" Text="请输入查找内容"></asp:TextBox> </li> <li class="sousuobutton"> <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">搜索</asp:LinkButton></li> </ul> </div>
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class WebUserControl_top : System.Web.UI.UserControl { protected string newstitle; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sql = "select top 5 * from [newscontent] where hit=5 ORDER BY [time] DESC"; DB.bindrepeater(sql, Repeater1); } } protected void LinkButton1_Click(object sender, EventArgs e) { if (this.TextBox1.Text != "") { string key = this.TextBox1.Text; Response.Redirect("product.aspx?key=" + key + ""); } } } 可能是样式里面设置了背景图片 你去看一下样式然后去找一下有没有那个背景图片