Commit d697841d authored by 张媛's avatar 张媛

修复代码格式问题

parent 2be9f418
This source diff could not be displayed because it is too large. You can view the blob instead.
.total-container{ .total-container{
margin: 50px; margin: 50px;
} .container-div{
.container-div{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
align-content: flex-start; align-content: flex-start;
} .itemCom{
.itemCom{
width: 250px; width: 250px;
height: 200px; height: 200px;
} }
span{ .com-link-span{
display: block; display: block;
width: 200px; width: 200px;
text-align: center; text-align: center;
...@@ -22,7 +20,10 @@ span{ ...@@ -22,7 +20,10 @@ span{
color: #1E94FC; color: #1E94FC;
cursor: pointer; cursor: pointer;
} }
} }
h2{ }
h2{
color: #ffffff; color: #ffffff;
}
} }
...@@ -24,7 +24,7 @@ export const TotalCom = ()=>{ ...@@ -24,7 +24,7 @@ export const TotalCom = ()=>{
return ( return (
<div key={index} className="itemCom"> <div key={index} className="itemCom">
<img src={el.imgUrl} width = "200" height = "150"/> <img src={el.imgUrl} width = "200" height = "150"/>
<span onClick = {canvasClickFun.bind(this,el.name)} >{el.name}</span> <span className="com-link-span" onClick = {canvasClickFun.bind(this,el.name)} >{el.name}</span>
</div> </div>
) )
}) })
...@@ -37,7 +37,7 @@ export const TotalCom = ()=>{ ...@@ -37,7 +37,7 @@ export const TotalCom = ()=>{
return ( return (
<div key={index} className="itemCom"> <div key={index} className="itemCom">
<img src={el.imgUrl} width = "200" height = "150"/> <img src={el.imgUrl} width = "200" height = "150"/>
<span onClick = {reactClickFun.bind(this,el.name)} >{el.name}</span> <span className="com-link-span" onClick = {reactClickFun.bind(this,el.name)} >{el.name}</span>
</div> </div>
) )
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment