You can fork the bootstrap repo and change bootstrap.less
to wrap the bootstrap styles:
.bootstrap-scope {
//put bootstrap @includes in here
}
Then, in the root of the bootstrap project, run make
to generate the bootstrap.css
file.
You'll lose the global styles bootstrap assigns to the body and html tags, but you might not want them anyway.
And then, in your app, give the container you want the .bootstrap-scope
class.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…