课后四
代码
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<img src="Image/pic.gif" class="pos"/>
<script src="js/jquery-1.12.4.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".pos").mouseover(function () {
$(this).css({"border": "1px #ee7304 solid"});
}).mouseout(function () {
$(this).css({"border": "1px white solid"});
});
})
</script>
</body>
</html>
课后五
样式
h1{
background-color: black;
color: white;
text-align: center;
width: 500px;
}
div{
width: 500px;
text-indent: 2em;
display: none;
}
代码