如何在两个网格之间平均分割图像?

时间:2018-05-03 18:43:29

标签: html css image

如何在两次网格潜水之间制作图像?那个图像在一个上是50%,在另一个上是50%吗?



<div class="row">
  <div class="col-lg-12">
  </div>
</div>
<div class="sec-div">
  <img class="img-fluid img-second "src="http://lorempixel.com/400/200/cats">
</div>
<div class="row">
  <div class="col-lg-12 second">
  </div>
</div>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:-1)

我认为您应该使用library(dplyr) library(tidytext) library(gutenbergr) freud_books <- gutenberg_download(c(14969, 15489, 34300, 35875, 35877, 38219, 41214), meta_fields = "title") tidy_books <- freud_books %>% unnest_tokens(word, text) f_sentiment <- tidy_books %>% inner_join(get_sentiments("bing"), by = "word") %>% mutate(line = row_number()) %>% count(title, index = line %/% 80, sentiment) %>% spread(sentiment, n, fill = 0) %>% mutate(sentiment = positive - negative) 来保留z-index - 不确定是否有必要,设置img并设置主body { background-color: gray } margin 1}}具有负值。我认为这会奏效。

试试这个:(我假设你正在使用Bootstrap)

HTML:

div

CSS:

<div class="container-fluid" id="header"></div>
<div class="container second">
  <div class="col-lg-12 ">
  </div>
</div>

看到它在这里工作! https://jsfiddle.net/hokumi/m7qoy7h3/