gpt4 book ai didi

css - Bootstrap 轮播文本在 Safari 中变暗

转载 作者:技术小花猫 更新时间:2023-10-29 12:07:30 25 4
gpt4 key购买 nike

我使用的是 Bootstrap 3.3.1,我注意到当轮播在 Safari 中滚动时文本变暗。Chrome 没问题。

这是一个演示,使用来自官方网站的示例代码:http://s.codepen.io/resting/debug/QwEoPp ?
笔:http://codepen.io/resting/pen/QwEoPp

代码:

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://placehold.it/1024x400" alt="...">

<div class="carousel-caption">
...
</div>
</div>
<div class="item">
<img src="http://placehold.it/1024x400" alt="...">

<div class="carousel-caption">
...
</div>
</div>
...
</div>

<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>

<div class="container-fluid">

<div class="row">
<div class="col-xs-12">
Text dim in Safari when carousel scrolls.
</div>
</div>
</div>

有人解决这个问题吗?

最佳答案

修复

.carousel-inner {
-webkit-transform-style: preserve-3d;
}

关于css - Bootstrap 轮播文本在 Safari 中变暗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27591937/

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