繁体   English   中英

如何将图像浮动到文本的右侧?

[英]How do I float the image to the right of the text?

 <table class="container" width="800" align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" class="headline" bgcolor="#f2fafd" style="padding: 15px 20px 5px 30px; border-left: 1px solid #dbc064; border-right: 1px solid #dbc064; font-family: Open Sans, sans-serif; font-size: 14px; line-height: 22px; color: #1E4286;"> <h1 style="margin: color: #61B0BD; color: #61B0BD;" align="left" font-family:="open sans" color="#61B0BD" sans-serif;="" font-size:="25" 25px;="" line-height:="" 29px=""><strong style="text-align: left; color: #1e4286; font-size: 24px; float: left"> Offer PRECISION1<span class="sup">®</span> Lenses to All Patients Interested in Daily Disposables— Including Astigmats. </strong></h1> <img src="image/eblast toric advetorial precision1 p1-01:png" width="397" height="378" alt="" style="float; right," /> <p><strong>Aaron Luekenga, <br> </strong> OD Heritage Valley Eyecare<br> Santa Paula. CA</p> <p><em>Dr. Luekenga is a paid consultant for Alcon.</em></p>

在此处输入图像描述

我不是 100% 确定这是您想要的样式,但我将图像对齐到右侧。 如果这不是你想要的,请给我更多细节,我可以解决它。

这是代码

     <table class="container" width="800" align="left" border="0" cellpadding="0" cellspacing="0">
<img src="image/eblast toric advetorial precision1 p1-01.png" width="397" height="378" alt="" style="float: ;"/>
    <tr>
    <td valign="top" class="headline" bgcolor="#f2fafd" style="padding: 15px 20px 5px 30px; border-left: 1px solid #dbc064; border-right: 1px solid #dbc064; font-family: Open Sans, sans-serif; font-size: 14px; line-height: 22px; color: #1E4286;">
        <h1 style="margin: color: #61B0BD; color: #61B0BD;" align="left" font-family:="open sans" color="#61B0BD" sans-serif;="" font-size:="25" 25px;="" line-height:="" 29px=""><strong style="text-align: left; color: #1e4286; font-size: 24px; float: left"> Offer PRECISION1<span class="sup">®</span> Lenses to All Patients<br> Interested in Daily Disposables— Including Astigmats! </strong></h1> 
      <br>
      <br>
    

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM