为什么我的网站为我改变我的CSS

为什么我的网站为我改变我的CSS

本文介绍了为什么我的网站为我改变我的CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的drupal 8网站上安装了jssor幻灯片模块。我试图有幻灯片上的箭头来导航幻灯片。

  display:none; 

到我的箭头。当我删除终端中的行,箭头出现,但当我把鼠标放回到终端窗口的页面上,箭头消失,

  display:none; 

行返回。




解决方案

您是否尝试添加 display:block!important; / code>?我经常必须使用!important 停止我的CSS被其他模块覆盖。



解决这种问题是确保CSS文件以正确的顺序加载(毕竟它是Cascading Style Script)。但在这种情况下,以及CMS类型站点(或那些您没有访问权限更改CSS文件的加载顺序)的情况下,!important 声明是解决方案。


I have jssor slideshow module installed on my drupal 8 site. I am trying to have the arrows on the slides to navigate the slideshow. The problem is something is adding

display: none;

to my arrows. When I remove the the line in the terminal the arrow appears but when I put my mouse back on the page out of the terminal window the arrow disappears and the

display: none;

line is back.

What causes this and how can I stop it?

解决方案

Have you tried adding display: block !important; ? I often have to use the !important to stop my CSS being overridden by other modules.

The preferred method of resolving this kind of issue is to ensure that the CSS files are being loaded in the correct order (it is Cascading Style Script after all). However in this instance, and as is often the case with CMS type sites (or those where you don't have access to changing the loading order of the CSS files), the !important declaration is the solution.

这篇关于为什么我的网站为我改变我的CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 05:43