We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这里用CSS的border属性绘制了一些简单的图形,加深对border这个属性的认识 // 扇形 .angle { width: 0; height: 0; border-top: 100px solid pink; border-bottom: 100px solid red; border-left: 100px solid yellow; border-right: 100px solid green; border-radius: 100px; }
// 三角形 .angle { width: 0; height: 0; border-top: 100px solid pink; border-bottom: 100px solid red; border-left: 100px solid yellow; border-right: 100px solid green; }
// 梯形 .angle { width: 100px; border-top: 100px solid pink; border-bottom: 100px solid transparent; border-left: 100px solid transparent; border-right: 100px solid transparent; }
// 回力标 .angle { width: 0; height: 0; border-top: 100px solid transparent; border-bottom: 22px solid red; border-left: 22px solid yellow; border-right: 100px solid transparent; }
// 橄榄球 .angle { width: 0; height: 0; border-top: 22px solid pink; border-bottom: 22px solid red; border-left: 22px solid yellow; border-right: 100px solid green; border-radius: 50%; }
// 甜甜圈 .angle { width: 100px; height: 100px; border-top: 100px solid pink; border-bottom: 100px solid red; border-left: 100px solid yellow; border-right: 100px solid green; border-radius: 50%; }
// 信封 .angle { width: 0; height: 0; border-top: 60px solid #eacb77; border-bottom: 50px solid #f3dda3; border-left: 100px solid #f3dda3; border-right: 100px solid #f3dda3; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这里用CSS的border属性绘制了一些简单的图形,加深对border这个属性的认识
// 扇形
.angle {
width: 0;
height: 0;
border-top: 100px solid pink;
border-bottom: 100px solid red;
border-left: 100px solid yellow;
border-right: 100px solid green;
border-radius: 100px;
}
// 三角形
.angle {
width: 0;
height: 0;
border-top: 100px solid pink;
border-bottom: 100px solid red;
border-left: 100px solid yellow;
border-right: 100px solid green;
}
// 梯形
.angle {
width: 100px;
border-top: 100px solid pink;
border-bottom: 100px solid transparent;
border-left: 100px solid transparent;
border-right: 100px solid transparent;
}
// 回力标
.angle {
width: 0;
height: 0;
border-top: 100px solid transparent;
border-bottom: 22px solid red;
border-left: 22px solid yellow;
border-right: 100px solid transparent;
}
// 橄榄球
.angle {
width: 0;
height: 0;
border-top: 22px solid pink;
border-bottom: 22px solid red;
border-left: 22px solid yellow;
border-right: 100px solid green;
border-radius: 50%;
}
// 甜甜圈
.angle {
width: 100px;
height: 100px;
border-top: 100px solid pink;
border-bottom: 100px solid red;
border-left: 100px solid yellow;
border-right: 100px solid green;
border-radius: 50%;
}
// 信封
.angle {
width: 0;
height: 0;
border-top: 60px solid #eacb77;
border-bottom: 50px solid #f3dda3;
border-left: 100px solid #f3dda3;
border-right: 100px solid #f3dda3;
}
The text was updated successfully, but these errors were encountered: