龙二哥 發表於 2025-3-7 10:48:28

解决discuz! X3.5的logo用自己做的svg文件替换后不显示的问题

<img title="360截图20250307110326677.jpg" id="aimg_34797" aid="34797" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202503/07/110617qec5n5apw1bl61le.jpg" src="https://www.dismall.com/data/attachment/forum/202503/07/110617qec5n5apw1bl61le.jpg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="454" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br />&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 264 66&quot; <font color="#ff0000">width=&quot;260px&quot; height=&quot;66px&quot;</font>&gt;&lt;defs&gt;&lt;style&gt;.cls-1{font-size:35px;fill:#4285f4;font-family:MicrosoftYaHeiUI-Bold, Microsoft YaHei UI;font-weight:700;}.cls-2{font-size:10px;fill:#999;font-family:MicrosoftYaHeiUI, Microsoft YaHei UI;}&lt;/style&gt;&lt;/defs&gt;&lt;g&gt;&lt;text class=&quot;cls-1&quot; transform=&quot;translate(0 42.7)&quot;&gt;DISCUZ! X3.5&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;text class=&quot;cls-2&quot; transform=&quot;translate(5.42 52.94)&quot;&gt;www.dismall.com&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;<br /><br />给你的svg图片加上长宽属性,或者CSS里设置logo显示的尺寸<br />后台-全局-SEO设置-其他,在其他头部信息中加入如下代码:<br /><br /><ol><li>&lt;style&gt;.hdc h2 a img{width:180px;}&lt;/style&gt;</ol><br /><strong>svg或者CSS的</strong><strong>宽度具体数值根据你的需要调整</strong><br /><br /><br /><br /><br /><br />(css教程来自:https://www.dismall.com/forum.ph ... tid=11914&amp;pid=52924)<br /><br /><br /><br />url<em>, </em>https<em>, </em>11914<em>, </em>pid

scudder 發表於 2025-3-7 10:54:13

感谢分享教程。

lzhsxk 發表於 2025-4-1 08:59:26

非常感谢

playba 發表於 2025-4-2 20:49:08

非常感谢

ztw001 發表於 2025-4-2 21:09:15

非常感谢<br />

cyzhaojia 發表於 2025-4-5 00:08:17

谢谢提供解决办法

夫子 發表於 2025-4-9 00:43:44

来学习一下

教父 發表於 2025-4-9 21:55:35

我也是这样的问题

梦似飞杰 發表於 2025-8-2 18:03:11

看看咋弄的呢

凌秀君 發表於 2025-8-12 19:23:47

DSFDSFSDFS
頁: [1]
查看完整版本: 解决discuz! X3.5的logo用自己做的svg文件替换后不显示的问题