layer.open({
type: 2,
area:["500px","400px"],
  content: "test.html"
})

修改弹出框大小。在layer.opren()方法里面使用area:[]设置弹出框的宽/高。