Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net iframe背景色_Asp.net_Html_Ajax - Fatal编程技术网

Asp.net iframe背景色

Asp.net iframe背景色,asp.net,html,ajax,Asp.net,Html,Ajax,如何在设计时更改iframe背景色 我所说的设计时间是指以下内容: 我的类扩展了CompositeControl,在这里我实现了设计时支持 这是CreateChildControls()的一部分: 您必须设置iframe指向的任何页面的背景(src属性) 如果iframe指向与您相同的域,那么您可以使用Javascript更改背景颜色或添加其他样式表,但这也不是在设计时 此iframe的用途是什么?iframe将用于创建富文本编辑器(designMode=on),因此在设计时无法更改其颜色?

如何在设计时更改iframe背景色

我所说的设计时间是指以下内容: 我的类扩展了CompositeControl,在这里我实现了设计时支持

这是CreateChildControls()的一部分:


您必须设置iframe指向的任何页面的背景(src属性)

如果iframe指向与您相同的域,那么您可以使用Javascript更改背景颜色或添加其他样式表,但这也不是在设计时


此iframe的用途是什么?

iframe将用于创建富文本编辑器(designMode=on),因此在设计时无法更改其颜色?
 editor = new HtmlGenericControl("iframe");
 editor.ID = "editorID";
 editor.Style["background-color"] = "Red";
 editor.Style["color"] = "Black";
 editor.Style["position"] = "absolute";
 editor.Style["left"] ="0px";
 editor.Style["top"] = "0px";

 editor.Attributes["width"] = editorWidth.ToString() + "px";
 editor.Attributes["height"] = editorHeight.ToString() + "px";
 editor.Attributes["frameborder"] = "0";
 editor.Attributes["scrolling"] = "auto";