js

1. 下拉菜单nav链接点不动

class="dropdown-toggle"是下拉菜单样式

data-toggle是js属性,而dropdown是属性值。data-toggle="dropdown"表示引用js给外层添加一个open类

 <li class="dropdown">
     <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'lushu' %}">路书<span class="caret"></span></a>
     <ul class="dropdown-menu">
         <li><a href="/lushu/create/">制作路书</a></li>
     </ul>
 </li>

data-toggle属性

results matching ""

    No results matching ""