x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function addBorder() {
8
document.getElementById("compman").border = "2";
9
}
10
</script>
11
</head>
12
<body>
13
14
<img id="compman" src="/examples/compman.gif" alt="Computerman" width="107" height="98">
15
<br><br>
16
<input type="button" onclick="addBorder()" value="加上边框">
17
18
</body>
19
</html>