方案一:
var name = "<%= ReportTextBox.ClientID %>";
(document.getElementById(name + "_toolbar")).style.width = "100%";
(document.getElementById(name + "_iframe")).style.width = "100%";
方案二:
.ms-long{
width:90% !important;
}
.ms-longer{
width:90% !important;
}
.ms-rtelong{
width:90% !important;
}
.ms-rtelonger{
width:90% !important;
}
本文提供了两种不同的方法来设置Web页面中特定控件的宽度为100%或90%,通过JavaScript和CSS实现,适用于需要调整报表或富文本编辑器等Web控件显示效果的场景。
869

被折叠的 条评论
为什么被折叠?



