Skip to content
New issue

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

等边三角形 #224

Open
Sunny-117 opened this issue Nov 4, 2022 · 3 comments
Open

等边三角形 #224

Sunny-117 opened this issue Nov 4, 2022 · 3 comments

Comments

@Sunny-117
Copy link
Owner

No description provided.

@veneno-o
Copy link
Contributor

veneno-o commented Feb 9, 2023

<div id="app"></div>
#app{
    width: 0;
    height: 0;
    border: 100px solid transparent;
    border-bottom-color: red;
}
document.querySelector("#app").style.borderBottomWidth = 100 * Math.tan(Math.PI / 3) + "px";

@gaomiaoer1
Copy link

请问直接 border-bottom:100px solid red 为什么不行呢

@z1the3
Copy link

z1the3 commented Apr 25, 2023

请问直接 border-bottom:100px solid red 为什么不行呢

底是200px, 高是100px了
另外css用不了无理数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants