答案 0 :(得分:0)
这应该适用于浮动
<强> HTML 强>
function module_name_import_form($form, $form_state) {
$form['notes'] = array(
'#type' => 'markup',
'#markup' => '<div class="import-notes">A few upload fiel. <ul><li>pastikan file berformat .csv</ul></li></div>',
'#upload_location' => 'public://tmp/',
);
$form['import'] = array(
'#title' => t('import'),
'#type' => 'manage_file',
'#description' => t('file akan di upload'),
'#upload_location' => 'public://tmp/',
'#upload_validators' => array(
'file_validate_extensions' => array('csv'),
),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('import'),
);
return $form;
}
<强> CSS 强>
<div class="redbox"></div>
<div class="dother2box">
<div class="orangebox"></div>
<div class="greenbox"></div>
</div>
希望这适合你