【发布时间】:2012-02-28 10:39:31
【问题描述】:
我正在为 Drupal 网站设置主题,到目前为止一切顺利。我在 Drupal 6.24 平台上使用个人资料图片 6.x-1.4。
我已经到了图片上传字段的重点,默认情况下如下所示:
设计要求它看起来像这样:
到目前为止,我已将输入 css 设置为:
#user-register #edit-profile-picture-upload {
display: block;
background: transparent url(../images/button-upload.png) no-repeat scroll center center;
width: 130px;
height: 158px;
}
这是文件字段的 html:
<div class="form-item" id="edit-profile-picture-upload-wrapper">
<label for="edit-profile-picture-upload">Upload: </label>
<input type="file" name="files[profile_picture_upload]" class="form-file" id="edit-profile-picture-upload" size="40" />
</div>
但它只是看起来像这样(在 chrome 和 safari 上,在 Firefox 上更糟):
您将如何正确设置主题?或者至少“选择文件/未选择文件”按钮来自哪里?
【问题讨论】:
标签: php drupal drupal-6 themes drupal-theming