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

自适应正方形的问题报告 #83

Open
charlesix59 opened this issue Mar 16, 2023 · 0 comments
Open

自适应正方形的问题报告 #83

charlesix59 opened this issue Mar 16, 2023 · 0 comments

Comments

@charlesix59
Copy link

charlesix59 commented Mar 16, 2023

第一种方法绘制的正方形其实有一点点需要注意的地方,即父元素的大小(body)并不等于视窗大小,因为<body>在css中默认存在margin,故正方形的宽度略小于高度(在1920*1080的比例下为129.500*131.094

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

1 participant