【问题标题】:How do I float the image to the right of the text?如何将图像浮动到文本的右侧?
【发布时间】:2021-05-19 16:54:57
【问题描述】:

<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>

【问题讨论】:

  • 我将您的代码粘贴到了 sn-p 中,看起来应该可以工作

标签: html css-float


【解决方案1】:

我不是 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>
    

【讨论】:

  • 非常感谢!是的,这有帮助!
  • 我很高兴它有所帮助。我正在尝试在堆栈溢出时获得更多声誉点,以便我可以回答更多问题。如果您单击我的答案旁边的复选标记将其标记为正确,这将对我有很大帮助。谢谢!
猜你喜欢
  • 1970-01-01
  • 2019-08-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-09
  • 2013-05-14
  • 1970-01-01
相关资源
最近更新 更多