首页htmlchildren_parentCSS Layout - 如何垂直对齐到底部...

CSS Layout - 如何垂直对齐到底部...

我们想知道如何垂直对齐到底部。...

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.imgg {
  position: relative;
}

.imgg>div {
  position: absolute;
  top: 2.5vw;
}

.imgg>img {
  max-width: 100%;
  width: auto\9;
}
</style>
</head>
<body>
  <div class="imgg">
    <img src="http://www.w3cschool.cn/style/download.png" />
    <div id="text1">this is a test. 
    this is a test. this is a test. this is a test. this is a test.
    this is a test. this is a test.
     this is a test.</div>
  </div>
</body>
</html>