想知道现在的官方论坛(也就是本站这里)在没有登录时,这种同时看大小图是怎么设置的? New
想知道现在的官方论坛(也就是本站这里)在没有登录时,有的版块是游客看大图,有的版块是游客看小图,这种同时看大小图是怎么设置的的?见截图如下:1 贡献最佳答案
lilin 发表于 2026-3-30 16:41
我想知道X5能否像官方这里这样:一些版块是游客观看小图,另一些版块是游客观看大图。我比较喜欢这种可以 ...
我已经回答过了啊……目前的现状没缩小的是因为json编辑器,所以你自己可以决定,但这不是功能
湖中沉发表于4 天前
[*]详细答案 >
.ce-block { margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content { /* max-width:calc(100% - 50px) */ margin-left: auto; margin-right: auto;}.image-tool {--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;}.image-tool__image { border-radius: 3px; overflow: hidden; margin-bottom: 10px;}.image-tool__image-picture { max-width: 100%; vertical-align: bottom; display: block; margin-left: auto; margin-right: auto; }.image-tool__image-preloader { width: 50px; height: 50px; border-radius: 50%; background-size: cover; margin: auto; position: relative; background-color: #cdd1e0; background-position: center center; }.image-tool__image-preloader::after { content: ""; position: absolute; z-index: 3; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #cdd1e0; border-top-color: #388ae5; left: 50%; top: 50%; margin-top: -30px; margin-left: -30px; animation: image-preloader-spin 2s infinite linear; box-sizing: border-box; }.image-tool__caption::before { position: absolute !important; content: attr(data-placeholder); color: #707684; font-weight: normal; display: none; }.image-tool__caption:empty::before { display: block; }.image-tool__caption:empty:focus::before { display: none; }.image-tool--empty .image-tool__image { display: none; }.image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption { display: none; }.image-tool .cdx-button { display: flex; align-items: center; justify-content: center;}.image-tool .cdx-button svg { height: auto; margin: 0 6px 0 0; }.image-tool--filled .cdx-button { display: none; }.image-tool--filled .image-tool__image-preloader { display: none; }.image-tool--loading .image-tool__image { min-height: 200px; display: flex; border: 1px solid #e8e8eb; background-color: #fff; }.image-tool--loading .image-tool__image-picture { display: none; }.image-tool--loading .cdx-button { display: none; }/** * Tunes * ---------------- */.image-tool--withBorder .image-tool__image { border: 1px solid #e8e8eb; }.image-tool--withBackground .image-tool__image { padding: 15px; background: #cdd1e0; }.image-tool--withBackground .image-tool__image-picture { max-width: 60%; margin: 0 auto; }.image-tool--stretched .image-tool__image-picture { width: 100%; }.image-tool__caption { text-align: center; font-size: 14px; color: #a3a3a3; }@keyframes image-preloader-spin {0% { transform: rotate(0deg);}100% { transform: rotate(360deg);}}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;} 没缩小的是json编辑器产生的内容,暂时还未实现游客看小图功能而已 那个地方设置小图是所有版块都变成游客看小图了,我想要的是像官方论坛这里的样式,就是一些版块是游客观看小图,另一些版块是游客观看大图,我要的是这种设置方法。 我想知道X5能否像官方这里这样:一些版块是游客观看小图,另一些版块是游客观看大图。我比较喜欢这种可以设置不同版块的分别设置对游客观看大小图功能。
lilin 发表于 2026-3-30 16:41
我想知道X5能否像官方这里这样:一些版块是游客观看小图,另一些版块是游客观看大图。我比较喜欢这种可以 ...
我已经回答过了啊……目前的现状没缩小的是因为json编辑器,所以你自己可以决定,但这不是功能 明白了,我想要的这种 甲 版块游客看大图,乙 版块游客看小图 的设置不存在。对本论坛这里出现的 “问题求助” 版块游客看大图,“Discuz! X5 专区” 版块游客看小图现象只是json编辑器出现的一种意外,json编辑器完善后,这种现象就会消失。我现在也就不幻想这种设置了。非常感谢你的解答。
页:
[1]