小编Mar*_*den的帖子

引导程序中等于div和100%高度

我正在尝试使用5个DIV制作页面.
计划是使用Bootstrap 3将一张图片放在中央DIV中,并在其他4张图片中放置一个链接.

通缉结果:

图片

代码到目前为止:

.container-fluid2 {
  min-height: 100%;
  overflow: hidden;
  background-color: black;
}
.levogore5 {
  height: 50%;
  min-height: 50%;
  margin-bottom: -22%;
  padding-bottom: 22%;
  min-width: 25%;
  max-width: 100%;
  background-color: lime;
  vertical-align: top;
}
.levodole5 {
  height: 50%;
  min-height: 50%;
  margin-bottom: -25%;
  padding-bottom: 25%;
  min-width: 25%;
  max-width: 100%;
  background-color: green;
  vertical-align: baseline;
  margin-top: 22%;
}
.centar5 {
  height: 100%;
  min-height: 100%;
  min-width: 50%;
  max-width: 100%;
  background-color: red;
  margin-bottom: -50%;
  padding-bottom: 50%;
  overflow: hidden;
}
.desnogore5 {
  height: 50%;
  min-height: 50%;
  margin-bottom: …
Run Code Online (Sandbox Code Playgroud)

html css twitter-bootstrap

5
推荐指数
0
解决办法
624
查看次数

标签 统计

css ×1

html ×1

twitter-bootstrap ×1