312196920 發表於 2024-3-10 22:17:21

修改用户名片的性别颜色和图案

<br /><br /><font color="#000"><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">Discuz!论坛默认的 名片是带性别颜色和图案的。未知是灰色,男生是天蓝,女生是粉红。</font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">但是配上一些风格并不好看。</font></font></font></p><br /><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">编辑正在使用的模板CSS文件。</font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">具体目录是在 template/模板名/common/extend_common.css</font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">在文件底部添加</font></font></font></p><br /><ol><li>.card_gender_0 { background: #F2F2F2; }<br /><li>.card_gender_1 { background: #F2F2F2; }<br /><li>.card_gender_2 { background: #F2F2F2; }</ol><br /><br /><br /><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">如上代码就是 默认统一为淡灰色。</font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt">如果您想采用您自己的分性别图片。则使用</font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font size="3"><font face="等线"><font style="font-size:12pt"><br /></font></font></font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font face="等线">.card_gender_0 { background: #未知性别颜色代码 url(未知性别背景图片URL) no-repeat bottom right; }</font></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font face="等线">.card_gender_1 { background: #男生颜色代码 url(男生背景图片URL) no-repeat bottom right; }</font></p><p style="line-height:16px;text-indent:nullem;text-align:left"></p><p style="line-height:16px;text-indent:nullem;text-align:left"><font face="等线">.card_gender_2 { background: #女生颜色代码 url({女生性别背景图片URL) no-repeat bottom right; }</font></p><br /><br /></font><br /><br />null<em>, </em>left<em>, </em>等线

文強 發表於 2024-3-10 22:31:28

不错!支持一下。

buzhaoshan 發表於 2024-8-18 22:09:24

有改好样式的截图么?
頁: [1]
查看完整版本: 修改用户名片的性别颜色和图案