본문 바로가기

카테고리 없음

span change when hover on div

https://stackoverflow.com/questions/23859334/change-span-color-on-div-hover

 

Change span color on div hover

Sorry if this is stupid question but i really don't know what problem is.I am trying to change color of span on div's hover but my code doesn't seems to work. Here is code i'am using: HTML &l...

stackoverflow.com

.test
{
  background-color: #B8001C;
}

.test
{
  color: whitesmoke;
}

 이런식으로 하면 div 에 마우스 올리면 내부에 폰트 칼라가 변함