我在浏览器控制台中收到错误为 ::
glyphicons-halflings-regular.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
glyphicons-halflings-regular.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
glyphicons-halflings-regular.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
当我检查元素时,我看到 ::
::before == $0
这是什么意思?
检查元素中的 CSS 显示:
a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
content: 'e259';
display: block;
position: absolute;
right: 20px;
font-family: 'Glyphicons Halflings';
font-size: 0.6em;
}
a[aria-expanded="true"]::before {
content: 'e260';
}
content: 'e259'
是什么意思 ; ?
你已经导入了引导程序吗?
确保您正确导入了引导程序。
https://getbootstrap.com/docs/4.3/getting-started/introduction/