重置div内容的css样式 [英] Reset css style for a div content

查看:108
本文介绍了重置div内容的css样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个用css样式定制的html页面(我不能改变这个css)。此网页的一个标记设计为动态html数据的容器。如何重置此div的css设置(页面中定义的css样式对此div的内容没有影响)?

There is a html page customized with css styles(I cannot change this css). One tag of this page designed as a container for dynamic html data. How can I "reset" css settings for this div(css styles defined in the page have no influence on the content of this div)?

只有动态HTML和我可以添加更多的CSS样式到页面。

推荐答案

如果我正确理解你问题是,主页的CSS正在影响你的动态div的CSS。除了为要加载的动态内容指定更高优先级的样式外,大多数情况下您无法做任何事情。

If I understand you correctly the problem you have having is that the CSS for the main page is affecting the CSS for your "dynamic" div. For the most part there is nothing you can do about that, other than specifying higher-priority styles to the dynamic content you are loading.

您可以通过-line css,或通过在文件或标签中执行其他更具体的CSS声明。

You can do this by doing in-line css, or by doing other more specific CSS declarations in a file or tags.

这篇关于重置div内容的css样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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