$(document).ready(function(){
setTableWidth();
})
window.onresize=function(){
setTableWidth();
}
function setTableWidth(){
var width = $(document).width();
if(width < 500){
$('#table').css('width','500');
}else{
$('#table').css('width',width-30);
}
}
</script>
<form action="userAction!searchUser.action" onsubmit="return checkNull();" method="post">
<table id="table" cellpadding="0" cellspacing="1" bgcolor="#000">
设置页面宽度
最新推荐文章于 2021-03-25 01:20:56 发布