css - 菜单中的下拉箭头在 wordpress 上消失了现在该怎么办?
解决方案
添加 +/-li
与儿童。使用http://apps.eky.hk/css-triangle-generator/在 CSS 中生成箭头符号
li.menu-item-has-children > a:after{
content : '';
width: 0;
height: 0;
border-style: solid;
border-width: 100px 100px 0 100px;
border-color: #007bff transparent transparent transparent;
transition: all 0.3s ease-in-out;
}
li.menu-item-has-children:hover > a:after{
border-width: 0 100px 100px 100px;
border-color: transparent transparent #007bff transparent;
}
推荐阅读
- reactjs - 像这样的样式组件是一种不好的做法吗?
- c++ - How to use std::transform and std::mem_fn correctly?
- python - 如何在pandas python中查找和匹配来自不同数据帧的特定值
- python - 对字典进行排序,然后通过排名替换值
- node.js - nodejs中如何根据条件编写多个返回条件
- mysql - Mysql - 获取列值是除特定值之外的所有内容的记录
- python - 如果字符串值由字符和数字组成,是否有返回 True 的字符串方法?
- bash - 适用于 Windows 的 Linux 子系统 - shell 脚本 scp 将所有文件重命名为“.”
- home-assistant - 根据 Homeassistant 控制的湿度读数打开风扇
- python - 无法更新 us-central1 中的加密密钥