js代码,解释!

1988_1989 2011-08-19 01:57:53
bodyStyle: 'padding:10px;'

哪位高手大概说说页面布局上的style,格式啥的
...全文
68 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
飓风zj 2011-08-19
  • 打赏
  • 举报
回复
内外边距 好好查资料就可以了
1988_1989 2011-08-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 t5500 的回复:]

JScript code
document.getElementsByTagName('body')[0].style.padding = '10px'; //是这个意思吗?
[/Quote]


Ext.onReady(function() {
var items = [];

/**
* Basic panel
*/
items.push({
xtype: 'panel',

x: 50, y: 100,

width : 150,
height: 150,

title: 'Basic Panel',
animCollapse: true,
bodyPadding: 5,++++++++++++++++++这个
html : 'Some content',
collapsible: true
});
。。。。。。

items.push({
xtype: 'form',

id : 'form-widgets',
title: 'Form Widgets',

x: 50, y: 260,

width : 630,
height: 700,
frame: true,



bodyPadding: '10 20',******************************************这个

defaults: {
anchor : '98%',
msgTarget : 'side',
allowBlank: false //不允许为空
},


。。。。。。。
var tabCfg = {
xtype: 'tabpanel',

width : 310,
height: 150,

activeTab: 0,

defaults: {
bodyStyle: 'padding:10px;'*************************************这个
},

items: [
{
title: 'Tab 1',
html : 'Free-standing tab panel'
},
{
title : 'Tab 2',
closable: true
},
{
title : 'Tab 3',
closable: true
}
]
};





乌镇程序员 2011-08-19
  • 打赏
  • 举报
回复
document.getElementsByTagName('body')[0].style.padding = '10px'; //是这个意思吗?

50,545

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧