【发布时间】:2021-04-01 09:43:08
【问题描述】:
我正在使用 react.js 制作一行三张图片,每张图片的顶部和底部都有几个字。出于某种原因,当我更改措辞的颜色时,它并没有改变。任何人都知道为什么以及如何解决它?谢谢
HTML 代码
<ImageContainer>
<titleofexprience>
stuff
</titleofexprience>
<img id="experienceImage" src={stufff} alt="nice" />
<discriptionofexprience>
</discriptionofexprience>
</ImageContainer>
export const titleofexprience = styled.nav`
position: absolute;
bottom: 0px;
color: #B0E0E6;
`
export const discriptionofexprience = styled.nav`
position: absolute;
bottom: 0px;
color: #B0E0E6; //I try to change the color of the wording but it is not chaning it
`
【问题讨论】:
标签: javascript html css reactjs colors