作用域的外部CSS文件(没有CSS文件只应该链接) [英] scope external CSS file for div(no CSS file should link only )

查看:119
本文介绍了作用域的外部CSS文件(没有CSS文件只应该链接)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的页面中,我有三个CSS文件

In my page i have three CSS file

bootstrap.css
main.css
icon.css

这些是我的页面中的三个文件

these are the three file in my page


  • 正在使用Onload,Onclick功能

  • 外部 HTML 文件的链接将加载

  • 外部文件具有自己的 CSS文件命名为 style.css

    错误


  • Am using Onload ,Onclick function
  • when i click a link a external HTML file will load
  • the external file has its own CSS file named style.css

    ERROR

加载外部文件时,它与 bootstarp.css 链接如何停止与此文件的外部文件链接
外部文件将加载

when external file is loaded it links with bootstarp.css how to stop external file link with this file external file will load in

<div class="page">
<!--/external file loading place-->                
</div>

如何连结 style.css class =page


  • code> class =page

  • And no other CSS file should link insideclass="page"

推荐答案

我相信,引导CSS将始终影响整个页面上div的内容。

I believe that bootstrap css will always affect the conetent of divs on the entire page.

要创建一个不受影响的区域,您需要将外部文件加载到iframe而不是div中。

To make an area that is not affected, you will need to load the external file into an iframe rather than a div.

这篇关于作用域的外部CSS文件(没有CSS文件只应该链接)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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