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
// 宽度和高度设置为0,再把另外三个border背景设置为transparent #box{ position: relative; width:0; height:0; border: 20px solid transparent; border-top-color:red; border-bottom-width:0; } // 如果需要空心三角形(箭头),利用before再叠加一个,正确设置其背景色,border宽度小一个像素,调整left和top值即可 #box: before { content: ' '; position: absolute; left: -19px; top: -21px; width:0; height:0; border: 19px solid transparent; border-top-color:#fff; border-bottom-width:0; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: