我正在创建一个仅使用 Google 图书搜索 API 的网站,每次用户发送搜索特定图书的请求时是否都应该使用 api 密钥?如果用户在没有我的 api 密钥的情况下发送请求,是否有限制?
谁能告诉我为什么行方向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)