更新时间:2023-09-19 15:37:22
我很高兴你用css解决了它,但使用iframe仍然不是一个好主意。我想的是这样的事情:
I am glad you solved it with css, but using iframes is still not a good idea. I thought rather on something like this:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body{ font-size: 12px; font-family: Arial; }
table{ width: 100%; }
td {border: 1px solid red;}
#content {border: 1px solid green; width: 100%; height: auto;}
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script>
var pages = 3;
var page = 0;
function load(inc){
page = (page + inc) % pages;
( #content)。load( / page +(page + 1)+ html的跨度>);
if (page == 0 )
("#content").load("/page"+(page+1)+".html"); if(page==0)
( #previous)。hide(); else
("#prev").hide(); else