它是用CSS完成的。做类似的事情:
.dropdown-toggle:after { content: none }
您可以通过从元素中删除
dropdown-toggle
类来删除 Bootstrap 4 中的插入符号。所以代替这个:
<button class="btn btn-outline-secondary dropdown-toggle" ...>
您的按钮将是
<button class="btn btn-outline-secondary" ...>
这不会有任何副作用,并且它仍然可以作为下拉菜单正常运行。
在 Bootstrap 4 中,您可以通过设置
$enable-caret
sass 变量 false
来删除插入符号表单下拉按钮。但您必须在导入 bootstrap sass 文件之前设置此变量。
// Your variable overrides
$enable-caret: false
// Bootstrap and its default variables
@import "node_modules/bootstrap/scss/bootstrap";
我会在电话中正常使用下拉菜单,Apple rimane contornato di blu come se prende il contorno del bottone prima tu.
落下 行动 另一个动作 这里还有其他东西 questo è ili se qualcuno mi dà qualche suggerimento