以下是使用实例:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>如何去掉图片链接的边框</title>
<style type="text/css" media="all">
a img
{
border:none;
}
</style>
</head>
<body>
<p><a href="http://www.dreamdu.com/"><img src="/images/internet_process.png" alt="去掉边框的图片" /></a> 使用 border:none; 去掉了图片的边框</p>
<p>同学们可以去掉 border:none; 代码测试一下。</p>
</body>
</html>