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

x和y的默认值为0 #12

Open
elover opened this issue Dec 23, 2014 · 1 comment
Open

x和y的默认值为0 #12

elover opened this issue Dec 23, 2014 · 1 comment

Comments

@elover
Copy link

elover commented Dec 23, 2014

最好的方式是不是如果,x或y有一个没填,默认值为本身css决定的位置?因为有的场景只是需要基于x或y轴一个定位的?比如说悬停的侧边栏,只是需要和中间区域保持间距,而高度变化是动态的,你觉得呢?

@afc163
Copy link
Member

afc163 commented Dec 23, 2014

x 和 y 是在元素盒模型上的相对位置,并非在页面上的绝对位置。

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

2 participants