block context
div(class=‘easyui-layout’ style=‘height:1000px;width:1200px;background:#A9FACD;’)
div(region=‘north’ border=‘false’ style=‘height:60px;background:#B3DFDA;’) north region
div(region=‘west’ split=‘true’ title=‘West’ style=‘width:150px;padding:10px;’) west content
div(region=‘east’ split=‘true’ title=‘East’ style=‘width:100px;padding:10px;’) east region
div(region=‘south’ border=‘false’ style=‘height:50px;background:#A9FACD;padding:10px;’) south region
div(region=‘center’ title=‘Main Title’)
你在ejs或是jade中直接使用html,也是可以识别的吧
ejs没试过,不清楚。 jade试过了,不行,编译报错。
block context div(class=‘easyui-layout’ style=‘height:1000px;width:1200px;background:#A9FACD;’) div(region=‘north’ border=‘false’ style=‘height:60px;background:#B3DFDA;’) north region div(region=‘west’ split=‘true’ title=‘West’ style=‘width:150px;padding:10px;’) west content div(region=‘east’ split=‘true’ title=‘East’ style=‘width:100px;padding:10px;’) east region div(region=‘south’ border=‘false’ style=‘height:50px;background:#A9FACD;padding:10px;’) south region div(region=‘center’ title=‘Main Title’)
像这样的布局,看起来很不直观,我想直接用html来做,但加入html代码后,编译报错了