css如何继承?
.head1 {
background-color: #FF0000;
height: 200px;
width: 200px;
float: left;
}
.head2 {
height: 200px;
width: 200px;
background-color: #00FF00;
float: left;
margin-right: 5px;
margin-left: 5px;
}
.head3 {
background-color: #0000FF;
height: 200px;
width: 200px;
float: left;
}
这三个CSS有很多重复的如何用继承?
------解决方案--------------------import