[英]CSS order and Internet explorer
將dinamycally CSS加載到IE中時遇到問題。
我有不同的CSS文件,我需要按特定順序將這些文件添加到頭部。 例如,我有一個始終具有最高優先級的客戶文件,我必須在閱讀客戶信息時包括在內。
所以我有類似的東西:
< head >
< link rel: "stylesheet",
type: "text/css",
href: "StartingCSS.css">
< link rel: "stylesheet",
type: "text/css",
href: CSSclient.CSS>
< /head >
在某個時刻,我必須在頭部包含另一個特定於另一個模塊的css文件,並使用原型和JavaScript我將頭文件中的第一個包含在這個文件中,所以我有這樣的東西:
< head >
< link rel: "stylesheet",
type: "text/css",
href: "MyModule.css">
< link rel: "stylesheet",
type: "text/css",
href: "StartingCSS.css">
< link rel: "stylesheet",
type: "text/css",
href: CSSclient.CSS>
< /head >
在普通的瀏覽器中,如chrome或FF,CSSclient文件仍具有最高優先級,因為它是文檔中的最后一個,但在IE中,插入的最后一個文件正在獲得權力。
有人對我有好主意嗎? :)
非常感謝,José
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.