我正在使用自举网格系统,并且我已在第1列中添加了自定义复选框。虽然复选框的宽度仅为48px,但仍存在差距。有没有办法让第一列48px宽,并使第二列变量,以便它推动复选框?这是一张可以解释的图片!
这是我的代码......
$data = array('product' => 'oven', 'category' => 'single');
$pointer = &$a;
foreach ($data as $field => $value) {
// returning by reference
$pointer = &func($field, $value, $pointer);
print_r($a);
print_r($pointer);
}
function &func($field, $value, &$pointer) {
$pointer = &$pointer[$field][$value];
if (isset($pointer)) {
echo 'exists';
} else {
echo 'does not exist';
$pointer['url'] = 'someUrl';
}
// returning reference
return $pointer;
}

谢谢你们:)