我是CSS样式表的新手,我正在尝试围绕图片制作边框。 如果这有帮助,这是我的HTML和CSS代码:
h1{
font-family: Verdana, sans-serif;
color:#576D94, serif;
}
p{
font-family: Garamond, serif;
font-size: 18px;
color:#4A4943;
}
img{
height:100px;
width:300px;
border:1px solid #4682b4;
}

<!DOCTYPE html>
<html>
<head>
<title>Result</title>
<link type="text/css" rel="stylesheet" href="stylesheet.css" />
</head>
<body>
<h1>Welcome to my webisite!</h1>
<p>This is Alex's website welcome!!</p>
<img src="http://entnet5.com/~c86950x1/wp-content/uploads/2015/07/small-animals.jpg" />
</body>
</html>
&#13;
以下是我希望您具体查看的代码:
img{
height:100px;
width:300px;
border:1px solid #4682b4;
}