这是我的html代码
<ul class="dd-options dd-click-off-close">
<li>
<a class="dd-option"><label class="dd-option-text">Our Approach</label></a>
</li>
<li>
<a class="dd-option">
<label class="dd-option-text">- Consultation & Customized Search</label>
</a>
</li>
<li>
<a class="dd-option">
<label class="dd-option-text">- Dating & Relationship Coaching</label>
</a>
</li>
<li>
<a class="dd-option">
<label class="dd-option-text">Testimonials</label>
</a>
</li>
<li>
<a class="dd-option">
<label class="dd-option-text">- Online Dating Support</label>
</a>
</li>
</ul>
输出:
Our Approach
- Consultation & Customized Search
- Dating & Relationship Coaching
Testimonials
- Online Dating Support
但我需要这样(悬停父 li 后显示连字符 (-) li )
Our Approach
Testimonials
Hover on Our Approach want to show
- Consultation & Customized Search
- Dating & Relationship Coaching
Hover on Testimonials want to show
- Online Dating Suppor