【发布时间】:2020-08-07 07:53:33
【问题描述】:
/* Here is my container in my react component */
<Container fluid className="graph-container">
<Tabs
id="graph-buttons"
variant={"pills"}
>
<Tab id="line-tab" eventKey="line" title="Line">
<Content greeting={"line"} />
</Tab>
<Tab id="bar-tab" eventKey="otherline" title="OtherLine">
<Content greeting={"bar"} />
</Tab>
<Tab id="doughnut-tab" eventKey="doughnut" title="Doughnut">
<Content greeting={"doughnut"} />
</Tab>
</Tabs>
</Container>
/* Here is my CSS for the above component */
.graph-container{
background: black;
}
#graph-buttons{
margin-top: 50px;
}
#line-tab{
font-family: 'Courier New', Courier, monospace;
color: red;
background: red;
}
.graph-container 正在使用 CSS 进行更改,但由于某种原因,CSS 未与选项卡部分内的任何内容链接。这可能是什么原因?感谢您的帮助!
【问题讨论】:
标签: javascript css reactjs react-bootstrap