【发布时间】:2019-06-23 11:37:14
【问题描述】:
我想要这样的布局,谁能帮我写css代码?? 我的 HTML(我在 HTML 中的样式中移动了我的 CSS)-:
<div class="container" style={{ display: "flex", flexWrap: "wrap" }}>
<div class="orange" style={{ flex: 1 }}>
<div id="chart" />
</div>
<div class="yellow" style={{ flex: 1 }}>
<LineChart
width={600}
height={300}
data={this.state.data2}
margin={{ top: 5, right: 30, left: 20, bottom: 5 }}
>
<XAxis dataKey="name" />
<YAxis />
<CartesianGrid strokeDasharray="3 3" />
<Tooltip />
<Legend />
<Line
type="monotone"
dataKey="pv"
stroke="#8884d8"
activeDot={{ r: 8 }}
/>
<Line type="monotone" dataKey="uv" stroke="#82ca9d" />
</LineChart>
</div>
</div>
【问题讨论】:
-
你能告诉我们你的尝试吗?因此我们可以帮助您编写 CSS 代码。