使用 css 使得 div
内的文本多行显示
div {
white-space: pre-wrap;
word-wrap: break-word;
}
小于 1 分钟
使用 css 使得 div
内的文本多行显示
div {
white-space: pre-wrap;
word-wrap: break-word;
}
目的:
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue,
Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
html {
height: 100%;
}
#app {
height: 100%;
overflow: auto;
& > .layout {
height: 100%;
}
}
* {
margin: 0;
padding: 0;
}
*,
*:before,
*:after {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
a,
a:focus,
a:hover {
color: inherit;
outline: none;
text-decoration: none;
cursor: pointer;
}
div:focus {
outline: none;
}
label {
font-weight: 700;
}
ul,
ol,
li {
list-style-type: none;
}