【问题标题】:How to avoid the web application framework conflicts如何避免 Web 应用程序框架冲突
【发布时间】:2013-09-28 05:35:00
【问题描述】:

我正在使用 Visual Studio 2010
我使用两个 Web 设计框架创建 Web 应用程序(基础 css
和 jquery easyUi )

我在我的项目中包含这两个框架,例如

 <link href="css/groundwork.css" rel="stylesheet" type="text/css" />
 <link href="css/easyui.css" rel="stylesheet" type="text/css" />  

然后我对元素使用一个框架类

<div class="**GroudWork class**"></div>
<div class="**EasyUi class**"></div>

那么这个设计与另一个框架类(EasyUI框架)冲突...

请告诉我...如何在我的项目中包含这两个框架而不会相互冲突..

【问题讨论】:

    标签: jquery css visual-studio-2010


    【解决方案1】:

    改变你的css文件的顺序..像这样

    <link href="css/easyui.css" rel="stylesheet" type="text/css" />  
    <link href="css/groundwork.css" rel="stylesheet" type="text/css" />
    

    【讨论】:

    • 根据选择器的特殊性,顺序可能无关紧要。
    • 我重新排序 css 文件...但没有发生任何变化
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-15
    • 2011-05-26
    • 1970-01-01
    • 2019-05-16
    • 2011-07-02
    • 2018-02-03
    • 1970-01-01
    相关资源
    最近更新 更多