CSS代码
<style>
#borderlinks a{padding-left: 4px;
display: inlilne;
width: 150px;
color: black;
text-decoration: none;
border: 1px solid white;}
#borderlinks a:hover{
border: 1px solid black;
background-color: lightyellow;}
</style>
网页部分代码
<div id="borderlinks">
<a href="连接地址">连接文字</a>
<a href="连接地址">连接文字</a>
<a href="连接地址">连接文字</a>
<a href="连接地址">连接文字</a>
</div>