我正在使用angularJs与angular-ui bootstrap框架,我的问题我无法将css规则应用到我的网页。
我的index.html路线
.state("home",{
url:"Home",
views:{
'main':{templateUrl:"home.html"}
}
})
.state("forum",{
url:"forum",
views:{
'main3':{templateUrl:"forum.html"}
}
})
Forum.html ** bg颜色不是蓝色!**
<html>
<body style='background-color:blue'>
<h1>Forum</h1>
</body>
</html>
由于svarog建议问题来自标签,我删除了Html和body标签,我的页面工作正常。
<div style="background-color:blue">
<div class="tab-content">
<div ui-view="main3">
</div>
<h1>Forum</h1>
</div>
</div>