jquery页面加载完成后,在页面居中方式显示xxxx

<head>
<meta charset="utf-8"/>
<title>第一个简单的jQuery程序</title>
<style type="text/css">
  div{
    padding:8px 0px;
    font-size:12px;
    text-align:center;
    border:solid 1px #888;
}
</style>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    $('div').html("你好!最近你好吗?")
  });
</script>
</head>
<body>
<div></div>
</body>
</html>

原文地址:https://www.cnblogs.com/aivnfjgj/p/6827971.html