我可以将外部样式表仅链接到 HTML 文件的特定元素吗?
我试过这个:
<div id="main">
<!-- I don't want to style .alert from the external css -->
<div class="alert alert-success" role="alert">I don't want to style this alert from the external css.</div>
<div id="preview">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Specific Content Start - I want to style only this element with bootstrap -->
<h1>Bootstrap 3 - Specific Content</h1>
<!-- Specific Content End -->
</div>
</div>