Html 使图像正确水平对齐

Html 使图像正确水平对齐,html,css,Html,Css,这是我正在处理的页面: 我把它们放在一个固定高度的容器里,但它们超过了这个高度。此外,它们会溢出到内容区域并重叠,而不是简单地将当前内容向下碰撞 谢谢你的提示 天哪,我是个白痴!代码如下: CSS: HTML: 图片下方的代码: <a href="http://artificialmarketingsolutions.com/grand-canyon-routes/full-grand-canyon/"><img class="imgs alignnone size-fu

这是我正在处理的页面:

我把它们放在一个固定高度的容器里,但它们超过了这个高度。此外,它们会溢出到内容区域并重叠,而不是简单地将当前内容向下碰撞

谢谢你的提示

天哪,我是个白痴!代码如下:

CSS:

HTML:


图片下方的代码:

<a href="http://artificialmarketingsolutions.com/grand-canyon-routes/full-grand-canyon/"><img class="imgs alignnone size-full wp-image-27" alt="FullGrand" src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/FullGrand.jpg" width="274" height="204" /></a>
<strong>Full Grand Canyon Trip Features:​</strong>
<ul>
    <li>Longest Route Option​</li>
    <li>Up to 187, 225 or 279 River Miles​</li>
    <li>Motorized Trips from 6-10 Days</li>
    <li>​Non Motorized Trips  from 10-18 Days</li>
    <li>No Mandatory Hiking In or Out</li>
    <li>Over 104 Rapids</li>
    <li>All Raft Types Available​</li>
</ul>
Full canyon river trips begin at Lees Ferry, river mile zero, and continue downstream to one of the "take out" or departure points.  These take-out points are as follows: The Whitmore Helipad at river mile 187, the Diamond Creek Road at river mile 225, a take-out via jetboat ride across Lake Mead beginning just below Separation Canyon at river mile 240 or Pearce Ferry river mile 279.


</div>
<div id="middle">

<a href="http://artificialmarketingsolutions.com/grand-canyon-routes/upper-grand-canyon/"><img class="imgs alignnone size-full wp-image-29" alt="UpperGrand" src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/UpperGrand.jpg" width="274" height="204" /></a>

<strong>Upper Canyon Trip Features:​</strong>
<ul>
    <li>Shortest Route Option​</li>
    <li>89 River Miles</li>
    <li>Motorized Trips 3-5 Days</li>
    <li>Non Motorized Trips 5-8 Days​</li>
    <li>Must Hike out 7.5-10 miles</li>
    <li>Over 41 Rapids</li>
    <li>All Raft Types Available</li>
</ul>
Running from Lees Ferry to Phantom Ranch in the heart of the Grand Canyon, the upper portion is 89 miles long. Upon leaving Lees Ferry, you will quickly enter Marble Canyon. Within a few miles, the first signs of the fascinating geology of the canyon begin to appear as the Kaibab and Toroweap formations make their appearance, followed by Coconino Sandstone​.


</div>
<div id="right-side">

<a href="http://artificialmarketingsolutions.com/grand-canyon-routes/lower-grand-canyon/"><img class="imgs alignnone size-full wp-image-28" alt="LowerGrand" src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/LowerGrand.jpg" width="274" height="204" /></a>
<strong>Lower Canyon Trip Features:​</strong>
<ul>
    <li>Multiple Trip Length Options​</li>
    <li>​98, 136 or 190 River Miles</li>
    <li>Motorized Trips 5-6 Days​</li>
    <li>Non Motorized Trips 7-10 Days</li>
    <li>Must Hike in 7.5-10 miles</li>
    <li>Over 60 Rapids</li>
    <li>All Raft Types Available</li>
</ul>
Your trip will begin at the South Rim of the Grand Canyon.  All passengers going on lower canyon trips spend part of day 1 hiking down Bright Angel Trail to Phantom Ranch (approx. 10 Miles) or to Pipe Creek Beach (approx. 7.5 Miles) depending on the outfitter’s exact meeting point. ​


</div>

<div id="info-container" style="width:100%; height: 100%; display: inline-block;">
<div id="left-info">
  <a href="http://artificialmarketingsolutions.com/grand-canyon-routes/full-grand-canyon/">More Info</a>
  </div>
<div id="middle-info">
  <a href="http://artificialmarketingsolutions.com/grand-canyon-routes/upper-grand-canyon/">More Info</a>
  </div>
<div id="right-info">
  <a href="http://artificialmarketingsolutions.com/grand-canyon-routes/lower-grand-canyon/">More Info</a>
  </div>
</div>

完整的大峡谷旅行功能:​
  • 最长路线方案​
  • 长达187225或279英里的河流​
  • 6-10天的机动旅行
  • ​10-18天的非机动行程
  • 禁止强制徒步进出
  • 超过104个急流
  • 所有类型的筏都可用​
完整的峡谷河之旅从零英里河的利兹渡口开始,然后继续顺流而下到一个“外卖”或出发点。这些外卖点如下:187英里处的惠特莫尔直升机停机坪,225英里处的钻石溪公路,从240英里处的分离峡谷或279英里处的皮尔斯渡口开始,通过喷气艇穿越米德湖进行外卖。 上峡谷旅行特色:​
  • 最短路径选择​
  • 89英里
  • 机动旅行3-5天
  • 非机动化出行5-8天​
  • 必须步行7.5-10英里
  • 超过41个急流
  • 所有类型的筏都可用
从Lees Ferry到大峡谷中心的Phantom Ranch,上半部长达89英里。离开利兹渡口后,您将很快进入大理石峡谷。在几英里之内,随着Kaibab和Torowap地层的出现,峡谷迷人地质的最初迹象开始出现,随后是Coconino砂岩​. 下峡谷旅游特色:​
  • 多行程长度选项​
  • ​98、136或190河英里
  • 机动旅行5-6天​
  • 非机动化出行7-10天
  • 必须步行7.5-10英里
  • 60多个急流
  • 所有类型的筏都可用
你的旅行将从大峡谷的南缘开始。所有下峡谷旅行的乘客都会在第一天的部分时间沿着光明天使小径徒步前往幻影牧场(约10英里)或管道溪海滩(约7.5英里),具体取决于服装商的确切会合点​
您的代码:

<div class="steps">
  <a href="http://www.advantagegrandcanyon.com"><img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/BackButton.png"></a><!--br /-->
  <img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/Step1.png"><!--br /-->
  <a href="http://www.artificialmarketingsolutions.com/step-2-choose-your-trip-duration"><img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/NEXT.png"></a>
</div>

解决方案:

.steps {
   width: 500px;
   height: 70px;
   clear:both !important;
   display: block;
   padding: 10px;
}

我们不明白他们的意思,他们呢?请说明问题的实际位置?如果您有一些代码可以在这里展示,那就太好了。第一个提示:制作一个JSFIDLE来隔离问题()Oops–对不起!编辑文章以包含代码。如果你指的是那些图像下方没有排列的文本,(在firefox中),那么三个文本块中有两个文本块中有一个
。。嗯,不要这样认为。。。添加了该代码。
<div class="steps">
  <a href="http://www.advantagegrandcanyon.com"><img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/BackButton.png"></a><!--br /-->
  <img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/Step1.png"><!--br /-->
  <a href="http://www.artificialmarketingsolutions.com/step-2-choose-your-trip-duration"><img src="http://artificialmarketingsolutions.com/wp-content/uploads/2013/05/NEXT.png"></a>
</div>
.steps a{
    float:right;
}
.steps a:first-child{
    float:left;
}
.steps {
   width: 500px;
   height: 70px;
   clear:both !important;
   display: block;
   padding: 10px;
}