gpt4 book ai didi

html - 拉伸(stretch)图像以适应特定的 div

转载 作者:行者123 更新时间:2023-11-28 02:29:07 25 4
gpt4 key购买 nike

我有以下包含图像的 div: enter image description here

这是它的 HTML 和样式:

 <ul id="noty_centerRight_layout_container" class="i-am-new" style="right: 20px; position: fixed; width: 310px; height: auto; margin: 0px; padding: 0px; list-style-type: none; z-index: 10000000; top: 339.5px;">
<li style="overflow: visible; border-radius: 5px; background-color: rgb(255, 255, 255); border-color: rgb(204, 204, 204); color: rgb(68, 68, 68); width: 310px; cursor: pointer; min-height: 349px;" class="animated bounceIn">
<div class="noty_bar noty_type_alert" id="noty_4752181183881090">
<div class="noty_message pop-activity default-yellow" style="font-size: 13px; line-height: 16px; text-align: left; padding: 15px; width: auto; position: relative;">
<div class="noty_text">
<h3></h3>
<p> <button title="Close (Esc)" type="button" class="popup-close">×</button></p>
<p><a href="/half-price" target="_blank"><img style="width: 350px;" src="https://img.alleop.bg/catalog/Banners-Front/Popup-Product-banners/IMG_27082018_165243_0.png"></a></p>
<p></p>
</div>
</div>
</div>
</li>
</ul>

我想让图片和id的div一样大

noty_677289985142816800 Also, i've added

最佳答案

<ul id="noty_centerRight_layout_container" class="i-am-new" style="right: 20px; position: fixed; width: 310px; height: auto; margin: 0px; padding: 0px; list-style-type: none; z-index: 10000000; top: 339.5px;">
<button title="Close (Esc)" type="button" class="popup-close">×</button>
<li style="overflow: visible; border-radius: 5px; background-color: rgb(255, 255, 255); border-color: rgb(204, 204, 204); color: rgb(68, 68, 68); width: 310px; cursor: pointer; min-height: 349px;" class="animated bounceIn">
<div class="noty_bar noty_type_alert" id="noty_4752181183881090" style="background-color:blue;">
<div class="noty_message pop-activity default-yellow" style="font-size: 13px; line-height: 16px; text-align: left; padding: 15px; width: auto; position: relative;">
<div class="noty_text">
<p><a href="/half-price" target="_blank"><img style="width:310px;margin-top:-28px;margin-left:-15px;height:311px;" src="https://img.alleop.bg/catalog/Banners-Front/Popup-Product-banners/IMG_27082018_165243_0.png"></a></p>
<p></p>
</div>
</div>
</div>
</li>
</ul>

试试这段代码。

关于html - 拉伸(stretch)图像以适应特定的 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52051859/

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