禁用部分内容的CSS [英] Disable a css for part of the content

查看:143
本文介绍了禁用部分内容的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Yii-bootstrap扩展,我有一些样式问题,因为bootstrap css文件会影响页面的主要内容。

我的主要内容是使用OpenLayers完成的地图,所以我在混合它们之间的样式时遇到了一些问题。我试图做一个更一般的CSS文件,因为我已经看到他们推荐在网络上应用不同的样式,但是因为它们是两个自动库,所以很难尝试猜测它们是如何工作的以及它们使用的类。



有什么办法可以禁用一个具体div的css文件吗?

解决方案

您可以为该div创建一个类并重置您为常规div更改的值。


I am using Yii-bootstrap extension and I am having some styling problem because bootstrap css files affect the main content of the page.

My main content is a map done with OpenLayers so I am having several problems with styles mixing between them. I have tried to do a css file more general, as I have seen they recomend on the web,for applying different styles but as they are two "automatic" libraries is a hard work to try to guess how they work and the classes they use.

Is there any way to disable a css file for a concrete div?

解决方案

you can create a class for that div and reset the values you have changed for general divs.

这篇关于禁用部分内容的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆