html - slider 背景图像在 Microsoft Edge 上看起来不太好

标签 html css responsive microsoft-edge

我在我的 Wordpress 网站上创建了一个 slider ,它在 Google chrome 上看起来很好,但是当我在我的 Microsoft Edge 上打开它时,它会放大图片,使它看起来很大且像素化。我可以添加任何 CSS 代码以使背景在 Microsoft Edge 上看起来正常吗?

        <div class="elementor-widget-container">
            <div class="elementor-slides-wrapper elementor-slick-slider" dir="ltr">
    <div class="elementor-slides" data-slider_options="{&quot;slidesToShow&quot;:1,&quot;autoplaySpeed&quot;:4000,&quot;autoplay&quot;:true,&quot;infinite&quot;:true,&quot;pauseOnHover&quot;:false,&quot;speed&quot;:500,&quot;arrows&quot;:false,&quot;dots&quot;:false,&quot;rtl&quot;:false,&quot;fade&quot;:true}" data-animation="">
        <div class="elementor-repeater-item-c324989 slick-slide"><div class="slick-slide-bg"></div><div  class="slick-slide-inner"><div class="elementor-background-overlay"></div><div class="elementor-slide-content"><div class="elementor-slide-heading"><font dir="rtl"><font color="#ed6524">שוב</font> הפגישה לא התחילה בזמן?</font></div><div class="elementor-slide-description"><BR><BR></div></div></div></div><div class="elementor-repeater-item-15a3089 slick-slide"><div class="slick-slide-bg"></div><div  class="slick-slide-inner"><div class="elementor-background-overlay"></div><div class="elementor-slide-content"><div class="elementor-slide-heading"><font dir="rtl"><font color="#ed6524">שוב</font> הפגישה לא התחילה בזמן?</font></div><div class="elementor-slide-description"><BR><BR></div></div></div></div><div class="elementor-repeater-item-20784b4 slick-slide"><div class="slick-slide-bg"></div><div  class="slick-slide-inner"><div class="elementor-background-overlay"></div><div class="elementor-slide-content"><div class="elementor-slide-heading"><font dir="rtl"><font color="#ed6524">שוב</font> הפגישה לא התחילה בזמן?</font></div></div></div></div>         </div>
</div>
        </div>
        </div>

这是它在 Microsoft Edge 上的样子: enter image description here

下面是在具有相同屏幕分辨率的 Google Chrome 上的显示效果: enter image description here

这是网站链接:www.naotech.com/video-conference

当前的自定义 CSS:

@media screen and (-webkit-min-device-pixel-ratio:0)  and (min-width: 414px) {

.elementor-1063 .elementor-element.elementor-element-da9971b .slick-slide-inner
{
    background-image: linear-gradient(to top, rgba(28,34,38,1) 0%,rgba(0,0,0,0) 70%) !important;
    background-size: 100%;

}}
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-width: 414px) {
.elementor-1063 .elementor-element.elementor-element-fb358d5 .elementor-repeater-item-15a3089 .slick-slide-inner {
        background-image: linear-gradient(to top, rgba(28,34,38,1) 0%,rgba(0,0,0,0) 50%) !important;

}}

@media screen and (-webkit-min-device-pixel-ratio:0) and (min-width: 414px) {
.elementor-1063 .elementor-element.elementor-element-da9971b .elementor-slide-heading
{
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.9);
}
}
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-width: 1400px) {
.elementor-element .slick-slide-bg{
background-attachment:fixed;
background-position:center 100%;
}
}

谢谢!

最佳答案

我已经在 Edge(Microsoft Edge 42.17134.1.0)和 Chrome 上运行了我这边的网站。该网站在这两种浏览器上运行良好。

你可以看到我的截图: screenshot of Edge screenshot of Chrome

可能是版本影响了结果,请问你用的是什么版本的Edge。如果可能,请分享您的详细源代码,以便更轻松地帮助您。

关于html - slider 背景图像在 Microsoft Edge 上看起来不太好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53597679/

相关文章:

javascript - "This application does' 没有 javascript 就无法工作”在 android 中通过对话框流 iframe 代码

html - 无法设置 HTML 表单输入占位符文本的样式

jquery - Canvas 外导航菜单无法正常工作

html - 使用 `height=device-height` 设置元视口(viewport)标签有什么影响?

jquery - 移动菜单下拉菜单下推主要内容

html - 在html表格的每一行添加点击功能

javascript - 使用 PHP 和 JavaScript 将文本复制到剪贴板?

html - 有什么方法可以强制使用固有比率调整大小的元素在垂直方向和水平方向上填充其容器?

html - Css 将边距应用于 div 内的表格

jquery - 在移动 View 中切断父子连接