problem with border-width attribute
In the example .html file below, the border-width attribute does not appear to be doing anything in either firefox 5 or firefox 3.6.18.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;" />
<style type="text/css">
a:link img {
border-width: 1px;
border-style: solid;
}
</style>
</head>
<body>
<p><a href="alexander-cb.html"><img src="thumbs/thumb-avh.jpg" alt="CB" /></a> A court barony.</p>
</body>
</html>
I have tried 1px, 3px, and 5px, and this does not change the outpu开发者_如何转开发t. Why is the border-width property being ignored?
Are you forgetting to give it a border-color? It defaults to transparent if it isn't explicitly set.
精彩评论