本帖最后由 染儿 于 2010-7-9 07:41 编辑
利用的第一款,然后改了下性别显示位置,和几个图标。我想把用户组图标放到头像下面,中间不要有空行。可是如果放过去位置,用户组图标就会被加上白框。怎么去掉这个白框呢?而且中间还是有空隙。
我想实现这个效果
这个是5d6d的,用的组头像。可以实现么?
放上我改动后的show.php- <style type="text/css">
- .xlicons { text-align: left; padding: 0px 0px; }
- .xlicons img { vertical-align: middle; }
- .avatar img {BORDER-RIGHT: #daebcd 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #daebcd 1px solid; PADDING-LEFT: 3px; BACKGROUND: #f3f8ef; PADDING-BOTTOM: 3px; MARGIN: 0px 0px 0.3em; BORDER-LEFT: #daebcd 1px solid; PADDING-TOP: 3px; BORDER-BOTTOM: #daebcd 1px solid;}
- .view_uidxx {BORDER-RIGHT: #CCCCCC 1px dashed; PADDING-RIGHT: 2px; BORDER-TOP: #CCCCCC 1px dashed; MARGIN-TOP: 3px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN-LEFT: 8px; BORDER-LEFT: #CCCCCC 1px dashed; MARGIN-RIGHT: 8px; PADDING-TOP: 5px; BORDER-BOTTOM: #CCCCCC 1px dashed;}
- .view_showxx {BORDER-RIGHT: #CCCCCC 1px dashed; PADDING-RIGHT:2px; BORDER-TOP: #CCCCCC 1px dashed; MARGIN-TOP: 3px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN-LEFT: 8px; BORDER-LEFT: #CCCCCC 1px dashed; MARGIN-RIGHT: 8px; PADDING-TOP: 5px; BORDER-BOTTOM: #CCCCCC 1px dashed;}
- .view_fieldsetmedals {BORDER-RIGHT: #CCCCCC 1px dashed; PADDING-RIGHT: 5px; BORDER-TOP: #CCCCCC 1px dashed; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN-LEFT: 8px; BORDER-LEFT: #CCCCCC 1px dashed; MARGIN-RIGHT: 8px; PADDING-TOP: 5px; BORDER-BOTTOM: #CCCCCC 1px dashed;}
- </style>
- <cite>
- <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}--> </cite>
- <!--{if $post['nickname']}--> <font color="#666666">$post[nickname]</font><!--{/if}-->
- <div id="userinfo$post[pid]_a">
- <!--{if $_G['setting']['bannedmessages'] & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] &1)}-->
- <div class="avatar">{lang member_avatar_banned}</div>
- <!--{elseif $post['avatar'] && $showavatars}-->
- <div align="center" class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
- <!--{/if}-->
- </div>
- {hook/viewthread_sidetop $post['count']}
- <DIV class="view_uidxx" align=left><img src="static/image/beautify/{$post['stars']}.gif" title="Rank: {$post['stars']}"></br></br>
- <div class="xlicons">
- <a href="home.php?mod=space&uid=$post[authorid]" target="_blank"><img src="static/image/beautify/userinfo.gif" alt="个人空间"></a>
- <a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2" onclick="showWindow('showMsgBox', this.href, 'get', 0)"><img src="static/image/beautify/notice_newpm.gif" alt="短信联系我"></a>
- <a href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_$post[authorid]" target="_blank" id="a_friend_li_$post[authorid]" onclick="showWindow(this.id, this.href, 'get', 0);"><img src="static/image/beautify/friend.gif" alt="加我为好友"></a>
- <!--{if $post['qq']}-->
- <a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$bbname&Menu=yes" target="_blank"><img src="static/image/beautify/qq.gif" alt="QQ" /></a> <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"></a>
- <!--{/if}-->
- </div>
- </DIV>
- <div class="view_showxx" align="left" id="view_showxx_extra_{$post[pid]}">
- <!--{if $post['authortitle']}--><img src="static/image/beautify/mini_icons_102.gif" /> 级别: $post[authortitle]<br /><!--{/if}-->
- <!--{if $post['customstatus']}--><img src="static/image/beautify/mini_icons_102.gif" /> 头衔: $post[customstatus]<br /><!--{/if}-->
- <!--{if $customauthorinfo[1]}-->
- <script type="text/javascript">
- <!--
- var authorinfo = '{eval @eval('echo "'.$customauthorinfo[1].'";');}';
- reg = /(<dt>)/gi;
- img = '<img src="static/image/beautify/mini_icons_102.gif" /> '
- authorinfo = authorinfo.replace(reg,img);
- reg = /<\/dt><dd>/gi;
- authorinfo = authorinfo.replace(reg,': ');
- reg = /<\/dd>/gi;
- authorinfo = authorinfo.replace(reg,'<br/>');
- $('view_showxx_extra_{$post[pid]}').innerHTML += authorinfo;
- //-->
- </script>
- <!--{/if}-->
- </div>
- <!--{if $post['medals']}-->
- <FIELDSET class="view_fieldsetmedals" align=left><LEGEND><B>荣誉勋章</B></LEGEND>
-
- <!--{loop $post['medals'] $medal}--><img src="static/image/common/$medal[image]" alt="$medal[name]" title="$medal[name]" />
- <!--{/loop}-->
- </FIELDSET>
-
- <!--{/if}-->
- {hook/viewthread_sidebottom $post['count']}
- <!--{else}-->
- <!--{if !$post['authorid']}-->
- <a href="javascript:;">{lang guest} <em>$post[useip]</em></a></cite>
- {lang unregistered}
- <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
- <!--{if $forum['ismoderator']}--><a href="space.php?uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
- {lang member_anonymous}
- <!--{else}-->
- $post[author]</cite>
- {lang member_deleted}
- <!--{/if}-->
- <!--{/if}-->
复制代码 |