解决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 /><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 66" <font color="#ff0000">width="260px" height="66px"</font>><defs><style>.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;}</style></defs><g><text class="cls-1" transform="translate(0 42.7)">DISCUZ! X3.5</text></g><g><text class="cls-2" transform="translate(5.42 52.94)">www.dismall.com</text></g></svg><br /><br />给你的svg图片加上长宽属性,或者CSS里设置logo显示的尺寸<br />后台-全局-SEO设置-其他,在其他头部信息中加入如下代码:<br /><br /><ol><li><style>.hdc h2 a img{width:180px;}</style></ol><br /><strong>svg或者CSS的</strong><strong>宽度具体数值根据你的需要调整</strong><br /><br /><br /><br /><br /><br />(css教程来自:https://www.dismall.com/forum.ph ... tid=11914&pid=52924)<br /><br /><br /><br />url<em>, </em>https<em>, </em>11914<em>, </em>pid 感谢分享教程。 非常感谢 非常感谢 非常感谢<br /> 谢谢提供解决办法 来学习一下 我也是这样的问题 看看咋弄的呢 DSFDSFSDFS
頁:
[1]