文字的奇怪蓝色下划线?

时间:2012-04-14 09:52:37

标签: css hover underline

<p>Text adjustement
 <span>
  - [b](text)[/b] for <b>Bold</b><br>
  - [u](text)[/u] for <u>Underlined</u><br>
  - [i](text)[/i] for <i>Italic</i><br>
  - [s](text)[/s] for <s>Strike</s><br>
  <br>
  - [big](text)[/big] for big text<br>
  - [medium](text)[/medium] for medium-large text<br>
  - [small](text)[/small] for small text<br>
 </span>
</p>
table.fancy td.tdtop p {
    color: blue;
    display: block;
}

table.fancy td.tdtop p:hover {
    text-decoration: underline;
    cursor: pointer;
}

table.fancy td.tdtop p span {
    color: black;
    display: none;
    padding: 2px;
    padding-left: 4px;
    border: 1px solid #e0e0e0;
    background: #f0f0f0;
    text-decoration: none;
}

table.fancy td.tdtop p:hover span {
    display: block;
    text-decoration: none !imporant;
    color: black !imporant;
}

当你将鼠标悬停在&lt; p&gt;上时,我正试图显示一个方框,但这就是我得到的:

1 个答案:

答案 0 :(得分:2)

<强> DEMO

这是你需要的吗? css的问题得到了清理。

相关问题