Board logo

標題: 解決頭像走位方法 [打印本頁]

作者: 【Push】sY    時間: 2007-9-30 15:22     標題: 解決頭像走位方法

1. 修改 css 模板 (如其他風格含有此模板也要修改)
複製內容到剪貼板
代碼:
div.viavatar { margin: 5px; padding: 0px; width:140px; position:relative; height: 226px;}
在上面加上
複製內容到剪貼板
代碼:
                        .imagefixeddiv {height:235px;width:140px;margin-top:-5px;}
                        .imagefixed {padding:0px;vertical-align: top; position:absolute;margin-top:-5px;margin-left:-4px; width:185px;}
完成後 "更新 css 緩存"

2. 修改 viewthread.php
複製內容到剪貼板
代碼:
$post['avatar'] = "<div id=\"Show{$post['pid']}\" class=\"viavatar\">";
更換為
複製內容到剪貼板
代碼:
$post['avatar'] = "<div class=\"imagefixeddiv\"><div class=\"imagefixed\"><table summary=\"meminfo\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"border-top:none;\"><div id=\"Show{$post['pid']}\" class=\"viavatar\"></div></td></tr></table></div>";
~完成~




歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/) Powered by Discuz! 6.0.0