0 0 0

添加附件改为按钮样式 教程

 陈哥 V UID:1 地仙境创始人
2025-06-09 341  来自 仙界

本教程需要修改2处文件,容易程度:非常容易。

1:打开模板下的【plugin/模板名称/overwrite/view/htm/post.htm】文件

如果上述文件不存在,则打开根目录下的【view/htm/post.htm】

找到<!--{hook post_message_after.htm}-->和<!--{hook post_submit_after.htm}-->之间的内容,修改为保存

<div class="d-flex justify-content-between">
	<div>
		<label class="addattach btn btn-secondary mb-0" id="addattach">
			<i class="icon-folder-open-o"></i> 
				<?php echo lang('add_attach');?>
				<input type="file"  multiple="multiple" class="d-none" />
		</label>
				<!--{hook post_bottom_right.htm}-->
	</div>
	<div class="text-right">
		<button type="submit" class="btn btn-primary" id="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo $form_submit_txt;?> </button>
				<!--{hook post_bottom_left.htm}-->
	</div>
</div>
<div class="attachlist_parent">
	<?php echo post_file_list_html($filelist, TRUE);?>							
</div>​
 

 

</div>​

2:打开模板下的【plugin/模板名称/overwrite/css/bootstrap-bbs.css】文件

有些模板可能自己重新定义了CSS文件名称,请自己查找一下

如果上述文件均不存在,则打开根目录下的【view/css/bootstrap-bbs.css】

找到下面内容并删除。

.addattach:hover {
  font-weight: 800;
}
 

附件详情

  • 说明: 每次点击下载扣除1金币
  • 附件名:
    加载中...
  • 附件分类: 教程
  • 账户经验: 0 点 [排行]
  • 账户金币: 0 个 [兑换]
  • 账户灵石: 0 枚 [充值]
  • 上传用户:  陈哥 时间:2025-06-09
  • 下载地址:
看过的人 (0)
最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
每日签到
今日共0人签到
请先登录
周一
周二
周三
周四
周五
周六
周日

2025年乙巳年蛇年
13:36:00
公历日期
9月26日
农历日期
八月初五
星期
星期五
下午好
金秋时节,愿您收获满满
距离国庆节还有5天
请先登录后发表评论!