1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > html鼠标悬停边框变虚线 css设置表格的边框为实线还是虚线 +鼠标悬停显示提示字...

html鼠标悬停边框变虚线 css设置表格的边框为实线还是虚线 +鼠标悬停显示提示字...

时间:2022-05-04 08:48:07

相关推荐

html鼠标悬停边框变虚线 css设置表格的边框为实线还是虚线 +鼠标悬停显示提示字...

虚线

在css里面添加

td {border-bottom:1px dashed #000000;}

实线

在css里面添加

td {border:1px solid black;}

-------------------------------------------------------------------

去掉链接的下划线,并设定字体的颜色

A:link{ text-decoration:none; color:#你想要的颜色;}

A:visited { text-decoration:none; color:#你想要的颜色;}

A:hover { text-decoration:none; color:#你想要的颜色;}

A:active { text-decoration:none; color:#你想要的颜色;}

-------------------------------------------------------------------------

鼠标悬停提示效果,将下面的代码copy到一个文本文件中保存为xx.html,打开就可以看到效果了。

鼠标移到这里看看吧我是该连接的文字说明,效果是不是很好呢?

.tooltips{ position:relative; /*这个是关键*/

z-index:2; } .tooltips:hover{ z-index:3; background:none; /*没有这个在IE中不可用*/

} .tooltips span{ display: none; } .tooltips:hover span{ /*span 标签仅在 :hover 状态时显示*/

display:block; position:absolute; top:21px; left:9px; width:15em; border:1px solid black; background-color:#ccFFFF; padding: 3px; color:black; }

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。