小编xde*_*dev的帖子

Google 图书 API 限制和 API 密钥

我正在创建一个仅使用 Google 图书搜索 API 的网站,每次用户发送搜索特定图书的请求时是否都应该使用 api 密钥?如果用户在没有我的 api 密钥的情况下发送请求,是否有限制?

google-api google-books

4
推荐指数
1
解决办法
2229
查看次数

文字未在flexbox中换行

谁能告诉我为什么行方向flex容器中div内的文本不能正确换行但会溢出吗?

如果我将方向更改为section,文字将自动换行,我不明白为什么...

html,
body {
  height: 100%;
}

body {
  overflow-y: scroll;
  margin: 0;
}

div,
main,
section {
  align-items: stretch;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  position: relative;
}

main {
  flex-grow: 1;
}

section {
  flex-flow: row nowrap;
  flex-grow: 1;
  justify-content: center;
  margin: 0 auto;
  max-width: 1280px;
  padding: 60px 0;
}

.content {
  flex-grow: 1;
  justify-content: start;
}
Run Code Online (Sandbox Code Playgroud)
<body>
  <main>
    <section>
      <div class="content">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eget nulla …
Run Code Online (Sandbox Code Playgroud)

html css css3 word-wrap flexbox

2
推荐指数
1
解决办法
3906
查看次数

标签 统计

css ×1

css3 ×1

flexbox ×1

google-api ×1

google-books ×1

html ×1

word-wrap ×1