Is CSS "!important" tag cross-browser?

时间:2017-06-15 10:32:53

标签: css twitter-bootstrap override important

I'm using a lot of **!important** in my CSS to override Twitter Bootstrap defaults. I wonder if it will work across all devices.

Does **!important** give me same results in all browsers?

2 个答案:

答案 0 :(得分:1)

从我支持CSS的每个浏览器支持的个人经验def filter_tree(self): search_by = self.search_entry.get() self.tree_detach_leaf_by_regex(self.current_loaded_folder, search_by, "") def tree_detach_leaf_by_regex(self, root, regex, parent): if self.treeview.get_children(root): for child in self.treeview.get_children(root): self.tree_detach_leaf_by_regex(child, regex, root) else: if not re.match(regex, self.treeview.item(root)["text"]): self.elements_index_within_parent[root] = self.treeview.index(root) self.elements_parents[parent] = 1 self.treeview.detach(root) else: self.treeview.reattach(root, parent, self.elements_index_within_parent[root]) 开始。但是在使用之前你必须检查This

答案 1 :(得分:1)

它是CSS规范的一部分,并且一直存在,并且总是很容易实现,浏览器似乎在第一次尝试时就已经正确。

以下是浏览器支持!important IE5.5 +,Firefox 1 +,Safari 3 +,Chrome 1 +。