Front-End/React
[React] 오류해결(css 선택자문제)
CODE_PLAN
2023. 1. 14. 18:37
.fixedBtn_wrap .btn_gotoTop {
display: flex;
align-items: center;
justify-content: center;
position: relative;
right: 0;
width: 48px;
height: 48px;
background-color: #fff;
border: 1px solid #000;
box-shadow: 1px 3px 6px 0 rgb(0 0 0 / 30%);
border-radius: 50%;
}
문제사항 : 위와같이 적용했는데 적용이 안됬었습니다.

분명 해당js는 1개밖에 없고(여기서는 Video.js파일) 이사진과 같이 되있어서 적용했었는데 안되어서
.fixedBtn_wrap_topBtn .btn_gotoTop {
display: flex;
align-items: center;
justify-content: center;
position: relative;
right: 0;
width: 48px;
height: 48px;
background-color: #fff;
border: 1px solid #000;
box-shadow: 1px 3px 6px 0 rgb(0 0 0 / 30%);
border-radius: 50%;
}
이렇게 선택자를 다 선택해놓으니까 적용안됬던게 적용이 되었습니다.