尝试在下面获取此图像:
但这是我所拥有的:
我正在使用此代码如下:
HTML:
<div class="floatright" style="width: 50%;">
<div class="floatleft" style="width: 35%;">
<img src="images/exhibitingopportunities.png" alt="Exhibiting Opportunities" style="border: none; width: auto; max-width: 100%;" />
</div>
<div class="floatleft sidespadding" style="width: 65%;">
<h4>Exhibiting Opportunities</h4>
<p class="desc">The Opportunity Finance Network Conference is a great place to connect with decision makers across the industry. Reserve your booth space now—contact Katie Kirchner for more information.</p>
</div>
</div>
<div style="width: 50%;">
<div class="floatleft" style="width: 35%;">
<img src="images/sponsorship_opportunities.png" alt="Sponsorship Opportunities" style="border: none; width: auto; max-width: 100%;" />
</div>
<div class="floatleft sidespadding" style="width: 65%;">
<h4>Sponsorship Opportunities</h4>
<p class="desc">Reserve your slot now to be a part of the CDFI industry's premier event! The OFN Conference provides our partners with an unparalleled platform to connect with CDFIs, increase awareness of their organizations' work, and support and strengthen the practice of opportunity finance.</p>
</div>
</div>
CSS:
.floatleft
{
float: left;
}
.floatright
{
float: right;
}
.sidespadding
{
padding-left: 1.2em;
padding-right: 1.2em;
}
.clear
{
clear: both;
}
无法让文本浮动到实际图像的左侧,就像第一张图片中的图像一样。天哪,我在这里错过了什么?网页在这里: http ://opportunityfinance.net/Test/2013conf/index.html