如何生成横向的分隔线 我需要给这个分割线赋id值

this.grid.getTopToolbar().add({
text:'button1',
id: 'button1',
iconCls: 'add'
},'-',{
text:'button2',
id: 'button2',
iconCls: 'check-out'
},{xtype:'tbseparator'},//此处可生成竖直分隔线
{
text:'button3',
iconCls: 'print',
menu: [{
text:'button4',
iconCls:'print'
}/*,'-',*/
,{xtype:'tbseparator'},//此处无作用
{
text:'button5',
iconCls:'print'
}
]
}
);

< hr id = '你想要输入的id' > 即可

@pluie-cloud 谢谢 你这个确实能出来分割线
再麻烦一下 我要怎么获取它的style 并赋值呢
Ext.getCmp('line').style.display='none';
无法获取属性“style”的值

@cmdll88 两种方式推荐你用jquery吧 如果你想让他隐藏 直接$("#line").hide()
$("p").css("color","red");

这个id不管用ext还是jquery都取不到 不懂是啥原因