2016-11-27 83 views

回答

1

你可能会寻找:

bottom: calc(100vh - 100px); 
+0

谢谢,这有效! – KSJ10

+0

当然,spencer.sm – KSJ10

0

我想你可能只是这样做:

div{ 
 
    position:absolute; 
 
    height: 50px; 
 
    width:50px; 
 
    background-color:#000000; 
 
    left:40px; 
 
    bottom: 100px; 
 

 
    }
<div></div>

+0

我想取100%的页面高度,然后将底部设置为比它小100px的值。这是因为使用底部有点具有挑战性,如果网页的高度增加,我将需要更改它的值。 – KSJ10

+0

我希望它是100% - 100px。这是因为如果网站的高度增加,我还需要更改网页的底部。 – KSJ10

相关问题