开发者

position issue, shy container2 yellow position is there? why not buttom?

开发者 https://www.devze.com 2023-04-13 03:42 出处:网络
<style type=\"text/css\"> .container{height:100px; width:100px;border: solid 1px black;line-height:100px;text-align:center;font-weight:bold;float:left;}
 <style type="text/css">
  .container{height:100px; width:100px;border: solid 1px black;line-height:100px;text-align:center;font-weight:bold;float:left;}
  .outContainer{height:410px;width:110px;background-color:green;position:relative;top:100px;left:100px}
  .container1{background-color:grey;}
  .container2{background-color:yellow;position:absolute;buttom:0px;right:10px;}
  .container3{background-color:pink;}
 </style>

<div class="outContainer">
<div class="container1 container"> 
  BOX1
</div>
<div class="container2 container"> 
  BOX2
</div>
<div class="container3 container"> 
  BOX3
</div>

position issue, shy container2 yellow position is there? why not but开发者_如何学运维tom?


buttom should be changed to bottom (bottom, spelled with a O instead of a u).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号