对文本框字体加红 对标题文本框输入的字体加红 判断我写好了 在数据库有字段 如果 checked 就==1 否则==0 怎么对字体加红啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 txtName.ForeColor=System.Drawing.Color.Red; if(dr["check"].ToString()=="1") Label1.ForeColor = "red"; Dim LL As LabelLL.ForeColor = Drawing.Color.Red 刚写错Label1.Attributes.Add("style", "color:red"); XXX.ForeColor=System.Drawing.Color.Red;前景色 XXX.ForeColor=System.Drawing.Color.Red; Label1.Attributes.Add("style", "color:red"); 例:<span <%if(checked==1){%>style="color:red;"<%}%>>字体变红</span> if(checked==1){ Response.Write("<input type=\"text\" style=\"color:#FF0000\" value=\"我是标题\"/>");}else{ Response.Write("<input type=\"text\" value=\"我是标题\"/>");} <input type="text" style="color:#FF0000" value="我是标题"/> ForeColor 没有这个属性啊 前台<input id="newstitle" runat="server" type="text" /> <asp:CheckBox ID="CheckBox1" runat="server" Text="加红" />后台:按钮里得 if (CheckBox1.Checked == true) { pnewsmodel.Jiahong = 1; } 点击按钮 如何使加红 如果是<input id="newstitle" runat="server" type="text" />的话就if (CheckBox1.Checked == true) { pnewsmodel.Jiahong = 1; newstitle..ForeColor=System.Drawing.Color.Red; } 哪位大哥给一个生成垂直下拉导航菜单的思路. 来者有分,请问哪里有web services的源代码可以下载 虽然我没分 但绝对吸引你 Web.Config怎样设置没有错误号的错误跳转到某一页? ASP.NET中在GridView中添加新列时出现问题 C#中取得n个空白字的方法是什么? VB.net中是 Space(number) 新手请教:ASP.net连接access数据库错误!说是没有权限! 为什么按钮失效?急,在线等 求常用js代码 ajax二级联动? documtn.Form.Submit() 提交没反应 报找不到该对象 asp.net mvc viewdata 传值
Label1.ForeColor = "red";
LL.ForeColor = Drawing.Color.Red
Label1.Attributes.Add("style", "color:red");
前景色
<span <%if(checked==1){%>style="color:red;"<%}%>>字体变红</span>
{
Response.Write("<input type=\"text\" style=\"color:#FF0000\" value=\"我是标题\"/>");
}else
{
Response.Write("<input type=\"text\" value=\"我是标题\"/>");
}
<asp:CheckBox ID="CheckBox1" runat="server" Text="加红" />
后台:按钮里得 if (CheckBox1.Checked == true)
{
pnewsmodel.Jiahong = 1;
} 点击按钮 如何使加红
的话就
if (CheckBox1.Checked == true)
{
pnewsmodel.Jiahong = 1;
newstitle..ForeColor=System.Drawing.Color.Red;
}