你的问题有很多未知数,
您使用的是什么版本的bootstrapvalidator 和bootstrap?
你是否在 JS 中包含了feedback icons?
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
您是从本地服务器加载bootstrap.css 或bootstrap.min.css 吗?
是否所有字体文件都存在且名称正确?
字体文件夹路径是否正确?
可能的解决方案。
大多数情况下,如果字体文件丢失或未正确加载、文件夹名称错误或字体文件路径错误,则会发生这种情况
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}
从 CDN 服务器加载 bootstrap.css,
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css"/>
如果显示字体图标,则在本地 bootstrap.css 文件中检查字体路径和文件夹名称是否正确,字体文件是否存在且文件名称是否正确。
要获得正确的字体,请访问Bootstrap homepage 并下载完整的 .zip 文件。从那里提取四个字体文件到您的字体目录,一切都应该正常。