首页javascriptoutlinejQuery Style - 如何set Outline的div

jQuery Style - 如何set Outline的div

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

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<style type='text/css'>
div {
  height: 100px;
  margin: 10px;
  background: yellow;
}
</style>
<script type='text/javascript'>
$(function(){
    $('div').css({'outline': '5px solid blue'});
});
</script>
</head>
<body>
  <div></div>
</body>
</html>