I wanted to load an external file named for //maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css
in a specific div with its id named for registerForm
.
Here are my code snippets as shown below.
html side
<div id="registerForm">
<style scoped>
@import "//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css";
</style>
...
</div>
This css file cannot implement in the specific div. It just covers all html code effects other divs.
I also tried this method shown below but nothing changed.
<style type="text/css" scoped="true">
@import url('${pageContext.request.contextPath}/css/bootstrap.min.css');
</style>
<script
src="${pageContext.request.contextPath}/js/jquery.scoped.js"></script>
How can I do it?