The second test makes sure that a banner with an incorrect height and width cannot be saved, and that the model correctly saves a banner with valid specs.
第二个测试确保高和宽不符合标准的横幅不被保存,具有有效规格的横幅则被正确保存。
The width depends on the size of the banner image and the height is arbitrarily set to a number of pixels.
宽度取决于标志图像的大小,而高度可以随意按像素大小设置。
Adjust the values of the width and height attributes according to the size of your banner image.
根据旗帜图像的大小调整width和height属性的值。
应用推荐