okai我正在使用jquery对话框来显示div中的内容
实际上我必须在对话框中显示的html来自数据库列以及css,当我在对话框中显示该html时,父页面的css开始覆盖css的对话框中的内容,因为我已经编写了整个html,而css来自数据库列,我无法覆盖任何内容,如何让对话框控件停止从父页面继承任何css并仅应用与之关联的格式包含内容
a simplistic example would be
<body I am the parent page and my css is overriding the dialog div>
<div id= dialog div>
<head>
hey I am the css from the db
</head>
<body>
hey I am the content from the db I am only suppose to format myself according to the css in my head tag
</body>
</div>
</body>