在一个页内完成,如下点击 现在“查询”是黑色粗体,别的项都是蓝色+下划线,点蓝色+下划线的要让自己变成黑色粗体,原来黑色粗体的变成蓝色+下划线不管是用ASP.NET的label控件,还是用锚计,只要实现了都行。我用了几个label,改了字体成那样,结果它们没有click事件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 linkbutton CSSCSS+Jquery<a> 直接设置下样式就行了 linkbutton 怎么让字不带下划线呀 别JQuery了,我就不信这么简单的功能直接都实现不了? text-decoration:none;css 去下划线 。你可以给linkbutton 加个类属性。 protected void Page_Load(object sender, EventArgs e) { Session["currentBold"] = "LinkButton3"; Session["linkFont"] = LinkButton1.Font; Session["boldFont"] = LinkButton3.Font; } protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton a = sender as LinkButton; if (a.ID == Session["currentBold"].ToString()) { a.Font = Session["linkFont"] as Font; } }我想类似这么写,可是不行,怎么办? protected void Page_Load(object sender, EventArgs e) { Session["currentBold"] = "LinkButton3";// Session["linkFont"] = LinkButton1.Font;// Session["boldFont"] = LinkButton3.Font; } protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton a = sender as LinkButton; if (a.ID == Session["currentBold"].ToString()) { //a.Font = Session["linkFont"] as FontInfo; a.Font.Bold = false; a.ForeColor = new System.Drawing.Color(); a.Font.Underline = true; }else { a.Font.Bold = true; a.ForeColor = Color.Black; a.Font.Underline = false; } }3个LinkButton都调用LinkButton1_Click这个函数 DEV控件使用脚本。。 实现文件上传功能,在调用imputexcell方法时候出错 事务执行多条SQL语句,为什么保存不了数据。请大师级高手看看 javascript css问题 GridView中,如何根据某列的值,来禁止或隐藏"编辑"或"删除"等命令按钮呢? ajax控件UpdateProgress的信息如何显示在浮动层中?在线等...... SQL SERVER 2000 ▲▲▲简单问题,datalist能否自动生成编号 高级程序员--应聘 MVC Post 提交后 Form数据还是原来的数据 Google首页“更多”下拉列表如何实现? 简单问题
css 去下划线 。
你可以给linkbutton 加个类属性。
{
Session["currentBold"] = "LinkButton3";
Session["linkFont"] = LinkButton1.Font;
Session["boldFont"] = LinkButton3.Font; }
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton a = sender as LinkButton;
if (a.ID == Session["currentBold"].ToString())
{
a.Font = Session["linkFont"] as Font;
}
}
我想类似这么写,可是不行,怎么办?
{
Session["currentBold"] = "LinkButton3";
// Session["linkFont"] = LinkButton1.Font;
// Session["boldFont"] = LinkButton3.Font; }
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton a = sender as LinkButton;
if (a.ID == Session["currentBold"].ToString())
{
//a.Font = Session["linkFont"] as FontInfo;
a.Font.Bold = false;
a.ForeColor = new System.Drawing.Color();
a.Font.Underline = true;
}else
{
a.Font.Bold = true;
a.ForeColor = Color.Black;
a.Font.Underline = false;
}
}3个LinkButton都调用LinkButton1_Click这个函数