gpt4 book ai didi

javascript - 覆盖图像属性

转载 作者:太空宇宙 更新时间:2023-11-04 04:59:48 27 4
gpt4 key购买 nike

我有一个包含图像的用户控件。我无法从我的 UI 页面修改图像的样式属性。

  <td class="innerDiv">
<div style="width: 100%;">
<uc:ImgControl ID="imgC1" runat="server" />
</div>
</td>

我希望高度和宽度与当前加载的内容不同。有没有办法可以在上面显示的代码中修改/覆盖图像的宽度属性?

我无法在 UserControl 页面中执行此操作,因为该控件也已在其他地方使用。

有什么建议吗?

最佳答案

.innerDiv img {
width: xx !important;
haight: xx !important;
}

关于javascript - 覆盖图像属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11720303/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com