zoukankan
html css js c++ java
Frame套帧只显示纵向滚动条的实现
主要注意的是:
1、删除
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
2、用Div来控制样式
<
div
style
="overflow: auto; 100%; height: 99%;"
>
效果如图:
主框架代码:
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
id
="Head1"
runat
="server"
>
<
title
>
套帧
</
title
>
</
head
>
<
frameset
cols
="350,*"
id
="myFrame"
border
="1"
frameborder
="1"
framespacing
="0"
>
<
frameset
rows
="110,*"
>
<
frame
name
="leftTop"
id
="leftTop"
src
="#"
scrolling
="no"
target
="right"
/>
<
frame
name
="leftContent"
id
="leftContent"
src
="######"
scrolling
="auto"
target
="_self"
/>
</
frameset
>
<
frameset
id
="contentFrame"
rows
="*,50"
>
<
frame
name
="rightContent"
id
="rightContent"
src
="#"
scrolling
="auto"
target
="right"
/>
<
frame
name
="rightBottom"
id
="rightBottom"
src
="#"
scrolling
="auto"
target
="_self"
/>
</
frameset
>
</
frameset
>
</
html
>
子框架代码:
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>(一定要删除些内容)
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
>
<
title
>
Untitled Page
</
title
>
</
head
>
<
body
>
//加一个Div来控制样式
<
div
style
="overflow: auto; 100%; height: 99%;"
>
<%
PrintList();
%>
<%
PrintPaging();
%>
</
div
>
</
body
>
</
html
>
查看全文
相关阅读:
Java SE 基础之接口回顾
读书杂谈-《架构探险:从零开始写Java Web框架》
Java Se之类加载问题思考
struts2 下载记录
《重构改善既有代码的设计》笔记之序
Luence简单实现2
RabbitMQ学习(1):安装
jquery插件dataTables添加序号列
父<IFRAME>获取子页属性以及子页中<IFRAME>的方法
类的约束 异常处理 自定义异常 MD5 日志信息处理
原文地址:https://www.cnblogs.com/abeen/p/1086559.html
最新文章
Installshield: custom action return value
autoplay media studio couldn't load
Peter Pan By: J. M. Barrie
Launch a Batch File With Windows Installer
ECHO is off
devenv compile errors collection
IF EXIST: The syntax of the command is incorrect.
Universal Naming Convention (UNC)
Batch file Functions
优先对列总结priority_queue
热门文章
POJ3253(贪心)
POJ3617
4540
1176(动规)
HDU1465(递推-错排公式)
HDU2045(递推题)
HDU1205
HDU-1005(规律题)
数论——买不到的数
plupload组件结合struts2完成上传
Copyright © 2011-2022 走看看