iFrame内容不水平滚动
问题描述:
iFrame在JSF中,框架内的内容没有完全显示,即使当我扩展框架的宽度(大于950px)页面内容开始出现但超出 容器宽度,我希望它有滚动条代替iFrame内容不水平滚动
<ui:composition template="/layout/layout.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j">
<ui:define name="body">
<iframe src="www.mysource.com" width="950px"></iframe>
</ui:define>
</ui:composition>
上午使用模板,它使用一个CSS文件,可以在CSS文件需要一些更改?
答
overflow: scroll
需要在内部文件上,最好在<html>
上,但也可以在<body>
上。对于width: 900px;
也是如此。
p.s. scrolling
不再支持HTML5。