response.write CSS失效问题
代码是Response.Write(" <embed src='images/message.mp3' width='0' height='0' id='music' autostart='true'> </embed>");
效果可以实现 但CSS失效了 请问下解决办法
一般网上解决的方法都是下面这个 但是 我试了 不出效果了
===========
/// <summary>
/// 弹出提示信息框
/// </summary>
/// <param name="strKey">函数key值 </param>
/// <param name="strInfo">提示信息 </param>
public void MessageBox(string strKey, string strInfo)
{
if (!ClientScript.IsClientScriptBlockRegistered(strKey))
{
string strjs = "alert('" + strInfo + "');";
ClientScript.RegisterClientScriptBlock(this.GetType(), strKey, strjs, true);
}
} 调用时,使用如下方式:
MessageBox("opsuccess","恭喜,密码修改成功,请记住新密码!");
==================
请问还有其他解决办法么 谢谢
Response.Write(" <embed src='images/message.mp3' width='0' height='0' id='music' autostart='true'> &
相关问答:
用"服务器控件名.Style.Add("display","")可以给这控件添加CSS,怎么样才能给读出来呢?
怎么都没人帮忙啊
人都死哪去了
控件ID.Style[HtmlTextWriterStyle.BackgroundColor]
控件 ......
我的样式表写的是:
body{
margin-left: 15%;
margin-right: 15%;
......
如题!! 最好能够多浏览器支持!!!
CSS code:
<style type="text/css">
<!--
.fixTop {
Z-Index:102;
position:relative;
Top:expression(this.offsetPare ......
position:relative不是相对定位吗~~为什么用了边偏移定位后有些人就说是变成了绝对定位了……~~而且它与margin来确定位置有什么不同~~
边偏移定位后有些人就说是变成了绝对定位了
re:
谁说的!真是不象话!positi ......
最近在用java代码分析网页,也就是常说的html parser,遇到了一个问题:网页中CSS里面镶嵌的图片分析不出来,
我用的是通过把源文件变成InputStream,然后变为字符串,再用 “img”标签匹配图片,但是css里面 ......