如何动态调用样式表? <LINK href="styles.css" type="text/css" rel="stylesheet">就是在后台代码里面怎么样动态改变href的值,最好给代码,aspx页面和cs都要,高分相送,先谢了. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class Test : System.Web.UI.Page { protected string m_StyleSrc = string.Empty; private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 m_StyleSrc = //你获取地址的方法 }}界面上<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet"> hertcloud(·£DOTNET→C/C++£·) ( 正解 hertcloud(·£DOTNET→C/C++£·) ( )public class Test : System.Web.UI.Page { protected string m_StyleSrc = string.Empty; private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 m_StyleSrc = //你获取地址的方法 }}界面上<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet">---------------------------------方法好 在Page_Onload里设置Page.StyleSheetTheme="样式文件名"; 这样会比较好:页面:<link href="" rel="stylesheet" type="text/css" id="css" runat="server"/>后台: this.css.Href = "css地址"; public class Test : System.Web.UI.Page{ protected string m_StyleSrc = string.Empty;private void Page_Load(object sender, System.EventArgs e){// 在此处放置用户代码以初始化页面 m_StyleSrc = //你获取地址的方法}}界面上<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet">---------------------------------正解 ref:http://community.csdn.net/Expert/topic/4954/4954171.xml?temp=.8035242 2005一般用Theme啦客户端技术也有很多很Cool的 datalist怎样隔行一种颜色? 救急,网站上传到服务器出现用户名不对 请高手看下,关于表设计的。谢谢 传递中文字符串的问题 數字轉換 请问 在线等关于missbbs的问题。 求大家帮我解决一个配置的问题!急,在线等!谢谢! [急助]怎样实现在ASP.NET中自动关闭flash小短片文件 我要调用支付宝查询接口, 请问我该准备些什么参数。调用的时候告诉我签名配置错误。 input 里面的onafterpaste这个事件为何在粘贴内容后不能触发,何故??急~~~@@ DataGrid中如何实现颜色交替呢?网上找的方法有问题哦!
{
protected string m_StyleSrc = string.Empty; private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
m_StyleSrc = //你获取地址的方法
}
}界面上
<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet">
public class Test : System.Web.UI.Page
{
protected string m_StyleSrc = string.Empty; private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
m_StyleSrc = //你获取地址的方法
}
}界面上
<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet">
---------------------------------
方法好
页面:
<link href="" rel="stylesheet" type="text/css" id="css" runat="server"/>
后台:
this.css.Href = "css地址";
{
protected string m_StyleSrc = string.Empty;private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
m_StyleSrc = //你获取地址的方法
}
}界面上
<LINK href="<%=m_StyleSrc%>" type="text/css" rel="stylesheet">
---------------------------------
正解
http://community.csdn.net/Expert/topic/4954/4954171.xml?temp=.8035242