0

现场直播。

在测试了我正在开发的网站后,我发现了一个奇怪的中断,它只发生在 Chrome 和 Safari 中。在 Firefox 中一切看起来都很好。

铬/Safari

欢迎来到 BodywoRx

    <div class="banner-image">
        <img src="<?php echo get_template_directory_uri(); ?>/img/large.jpg" alt="about-place-holder" id="aph" />
    </div><!-- end banner-image -->
    <p>Body WoRx was founded on the belief that many dysfunctions of the body can be healed through massage therapy.  In a world where prescriptions are written for variety of symptoms, we offer an alternative solution to helping the body heal itself.  We are located in historic downtown Grand Prairie, conveniently centered between Fort Worth and Dallas.</p>
    <div class="bio">
        <img src="<?php echo get_template_directory_uri(); ?>/img/bridgett.jpg" alt="bridgett-freiburger" id="bf" />
        <p>Bridgett suffered from chronic neck, back, and shoulder pain for many years.  She went to many doctors, specialists, had many MRI&apos;s, but no one knew what was causing the pain.  She had been prescribed countless medications to help ease discomfort, but nothing to address the cause.  Bridgett stumbled across massage therapy and has since become a firm believer and advocate in its many benefits and healing properties.  Before getting into massage therapy, Bridgett served in the Marine Corps, and then continued supporting the war fighter while working at Bell Helicopter. Bridgett is a graduate of North Texas School of Swedish Massage.</p>
    </div><!-- end bio -->
</div><!-- end about -->

我确定这是小事,我只是无法弄清楚。有任何想法吗?谢谢你。

4

2 回答 2

1

尝试float在第二张图片上使用。

.bio img {
    float: left;
}

JS 小提琴:http: //jsfiddle.net/J4MK4/2/

于 2012-07-10T19:22:26.980 回答
1

文字是否应该在图像的右侧?

如果是这样,您需要浮动图像。

img {
    float: left;
}
于 2012-07-10T19:22:42.253 回答