请问ext.js中组件的宽度如何按照百分比进行设置? 10
<scripttype="text/javascript">functionfn(){varobj={title:"日志查看",width:700,height:500,...
<script type="text/javascript">
function fn(){
var obj ={title:"日志查看",width:700,height:500,items:[{title:"操作日志",height:30},{title:"安全日志",height:30},{title:"面板3",height:30}]}
var panel = new Ext.TabPanel(obj);
panel.render("hello");
}
Ext.onReady(fn);
</script>
如把上面的width:700改成width:100%,在界面中就什么也看不到了,不知道怎么回事 展开
function fn(){
var obj ={title:"日志查看",width:700,height:500,items:[{title:"操作日志",height:30},{title:"安全日志",height:30},{title:"面板3",height:30}]}
var panel = new Ext.TabPanel(obj);
panel.render("hello");
}
Ext.onReady(fn);
</script>
如把上面的width:700改成width:100%,在界面中就什么也看不到了,不知道怎么回事 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询