gpt4 book ai didi

html - IE8 CSS 文本间距问题 Text-Justify

转载 作者:行者123 更新时间:2023-11-28 13:09:26 25 4
gpt4 key购买 nike

我在 ie8 中遇到一个 CSS 文本对齐问题,需要创建一个 ie8 特定规则来解决这个问题,但我不太熟悉这个过程。

页面和文本应该如下所示: Link to Page (使用现代浏览器,如 Chrome/Safari/Firefox)。

附上显示 ie8 间距的 Img。 ie8 text spacing issue

我该如何解决这个问题?一如既往地感谢您的帮助!

CSS

/*Fancybox Gallery Divs*/


#thumbs {
width: 960px;
margin-top:20px;
margin-left: auto;
margin-right: auto;
text-align: justify;
-ms-text-justify: distribute-all-lines;
text-justify: distribute-all-lines;
}

#thumbs a {
vertical-align: top;
display: inline-block;
*display: inline;
zoom: 1;
}

.stretch {
width: 100%;
display: inline-block;
font-size: 0;
line-height: 0
}

/*Descriptions*/


#desc-wrapper {
width: 960px;
padding-top: 5px;
margin-left: auto;
margin-right: auto;
text-align: justify;
-ms-text-justify: distribute-all-lines;
text-justify: distribute-all-lines;
}

.description {
float:left;
width: 320px; // Increase/decrease width for margin between images
height: 25px;
text-align: center;
margin-bottom: 30px;
}

.clear {
clear:both;
}

HTML

<!--/ Photo Thumbs Row 1-->

<div id="thumbs">

<a id="single_image" href="/bp/images/roscoes-run.jpg"><img src="/bp/images/roscoes-run(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/roscoes-run-2.jpg"><img src="/bp/images/roscoes-run-2(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/chicken-waffles.jpg"><img src="/bp/images/chicken-waffles(thumb).jpg" alt=""/></a>

<span class="stretch"></span>


</div>

<!--/ Description-->

<div id="desc-wrapper">
<div class="description">Roscoe's Run 2012</div>
<div class="description">Roscoe's Run 2012</div>
<div class="description">Roscoe's Run 2012</div>
<div class="clear"></div>
</div>




<!--/ Photo Thumbs Row 2-->

<div id="thumbs">

<a id="single_image" href="/bp/images/mens-retreat-2012.jpg"><img src="/bp/images/mens-retreat-2012(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/winter-retreat-2012.jpg"><img src="/bp/images/winter-retreat-2012(thumb).jpg" alt=""/></a>
<a id="single_image" href="/bp/images/new-years-eve-2012.jpg"><img src="/bp/images/new-years-eve-2012(thumb).jpg" alt=""/></a>


<span class="stretch"></span>

</div>


<!--/ Description-->

<div id="desc-wrapper">
<div class="description">Men's Retreat 2012</div>
<div class="description">Winter Retreat 2012</div>
<div class="description">New Year's Eve 2012</div>
<div class="clear"></div>
</div>

最佳答案

尝试将 text-justify: inter-word 添加到 .description 样式。

关于html - IE8 CSS 文本间距问题 Text-Justify,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15651779/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com