如何在悬停时保持直通

时间:2016-08-30 13:55:44

标签: css html5

如何保持line-through悬停?

CODE

<style>
.strike { text-decoration: line-through }
</style>

<a href="#" class="strike" >Not Applicable</a>

1 个答案:

答案 0 :(得分:2)

strike:hover添加到声明

.strike,
.strike:hover {
  text-decoration: line-through
}
<a href="#" class="strike">Not Applicable</a>