我正在使用shopify并使用我自己的html添加了一个部分。我添加了口红,脸部和那些与其中一种特色产品重叠的口红和照片的图片。内置于主题中的部分。我想知道我怎么能解决这个问题?我需要进去用液体修理一下吗?
我通过在html中使用表来解决此问题;我为未来的读者提供了我的解决方案。
HTML
public static void main(String[] args){
CustomerMC cmc = new CustomerMC();
ArrayList<Customer> customers = new ArrayList<>();
ArrayList<Order> orders = new ArrayList<>();
ArrayList<ArrayList> gay = new ArrayList<>();
try {
try (FileInputStream file = new FileInputStream(new File("C:/Users/Wout/Desktop/ProjectTest.xlsx"))) {
XSSFWorkbook wb = new XSSFWorkbook(file);
XSSFSheet sh = wb.getSheetAt(0);
Iterator<Row> rowIterator = sh.iterator();
while(rowIterator.hasNext()) {
Row row = rowIterator.next();
Iterator<Cell> cellIterator = row.cellIterator();
int counter = 0;
int cid = 0;
int OrderID = 0;
String name = "";
String purchase = "";
String age = "";
String product = "";
while (cellIterator.hasNext() && row.getRowNum() != 0) {
Cell cell = cellIterator.next();
counter++;
switch (counter) {
case 1:
cid = (int)cell.getNumericCellValue();
break;
case 2:
name = cell.getStringCellValue();
break;
case 3:
purchase = cell.getStringCellValue();
break;
case 4:
age = "" + cell.getNumericCellValue();
break;
case 5:
OrderID = (int)cell.getNumericCellValue();
break;
case 6:
product = "" + cell.getStringCellValue();
break;
case 7:
cid = (int)cell.getNumericCellValue();
break;
}
}
if(row.getRowNum() != 0) {
Customer customer = new Customer(cid,name,purchase,age);
Order order = new Order(OrderID, product, cid);
customers.add(customer);
orders.add(order);
gay.add(customers);
gay.add(orders);
}
}
}
} catch (FileNotFoundException ex) {
System.out.println("File has not been found");
} catch (IOException ex) {
System.out.println("An error has occured");
}
for(Customer customer : customers){
for(Order order : orders) {
System.out.println(order.toString());
cmc.insertOrder(""+order.getOrderid(), order.getProduct(), ""+customer.getCid());
}
System.out.println(customer.toString());
cmc.insertCustomer(""+customer.getCid(), customer.getName(), customer.getPurchase(), customer.getAge());
}
}
答案 0 :(得分:1)
为照片添加填充。填充(例如10px)将在所有边上添加10px的空白区域(除非您指定填充顶部或填充底部等...如果您愿意,可以执行此操作。)您还可以向容器添加边距。负边距顶部将向上移动容器位置的外观,同样也可以将其应用于照片。 (正面或负面)
希望这有帮助
拉结