각도 2를 사용하여 신체의 배경색을 정의하는 데 문제가 있습니다. html, body, container-fluid 색상을 변경해 보았지만 변경되지 않았습니다. 또한 app.component.css에서 html과 body를 변경했지만 작동하지 않았습니다.각도 2 - CSS 배경색이 작동하지 않음
내 CSS의 나머지는 괜찮습니다, 그래서 브라우저가 스타일 시트
app.component.html을 가지고 :
<jogo></jogo>
app.component.css :
html, body{
background-color: pink;
}
조고. 구성 요소
<div class="container-fluid" *ngIf="showPlay">
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8c">
<p align="center">
Qual é<br/>a<br/>Música?
</p>
</div>
</div>
<div class="row">
<div class="col-xs-4 col-md-4 col-lg-4"></div>
<div align="center">
<button type="button" class="rounded-circle">Play</button>
</div>
</div>
</div>
<div class="container-fluid" *ngIf="showJogo">
<div class="row">
<div class="col-xs-3 col-md-3 col-lg-3" id="tocador">
Segunda
<audio controls>
<!-- caminho devera ser trocado pelo do firebase? -->
<source src="/assets/Queen - Love of My Life.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
</div>
<div class="row">
<div class="col-xs-3 col-md-3 col-lg-3" id="pontos">Pontos</div>
</div>
<div class="row">
<div class="col-xs-3 col-md-3 col-lg-3" id="tempo">Tempo</div>
</div>
<div class="row">
<div class="col-xs-3 col-md-3 col-lg-3" id="pergunta">Pergunta</div>
</div>
</div>
스타일 시트를로드 :
body{
background-color: pink;
}
p {
font-family: 'Lobster', cursive;
font-size: 3.0em;
color: #990000;
/* Rotate div */
-ms-transform: rotate(7deg); /* IE 9 */
-webkit-transform: rotate(7deg); /* Safari 3-8 */
transform: rotate(-12deg);
}
button {
background-color: #990000;
color: #F0D1B7;
font-size: 1.5em;
border: none;
border-radius: 35px;
width: 10%;
}
이 작품 덕분 – tramada
@mandada 틱을 클릭하여 응답으로 받아주십시오. – Ajay