【发布时间】:2011-08-04 08:17:32
【问题描述】:
我有一个模板,我想在一个 div 中显示该 HTML 模板。
该 HTML CSS 模板会自动继承应用程序中使用的 CSS。
我希望它不继承 CSS。我需要完全重置那个 div 的样式...
示例代码:
<html>
<head><title>hi</title>
<link href="mystyle.css" />
</head>
<body>
This is my website content
<div id="template_holder">
<table>
<tr>
<td>name</td>
<td>Raja</td>
</tr>
</table>
</div>
</body>
</html>
在上面的代码中,template_holder 包含一个从mystyles.css 继承样式的表。
我不想让它继承它...
【问题讨论】:
-
您可以给我们任何示例代码吗?
标签: javascript jquery html css