首页javascripttopjQuery Style - 如何set Outline的div

jQuery Style - 如何set Outline的div

我们想知道如何set Outline的div。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.11.0.js'></script>
<style type='text/css'>
#topHeadVal {
  position: absolute;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
    $( "#topHeadVal" ).css('top','7px');
});
</script>
</head>
<body>
  <div id="topHeadVal">test</div>
</body>
</html>