Skip to content

图片增加了尺寸,发布转义的时候,能否增加图片的宽度 #105

Description

@weqoocu

如下图,显示图片的时候,设置了宽度,能否发布到wordPress的时候,增加宽度参数。

![详情|600](https://cdn.gooo.ai/gen-images/3cefc0290d0b1ef0de8f3b12ee26cf7355391a8a21c11ebfccb8a30ec6bff964.svg)

Activity

  1. weqoocu commented on Sep 6, 2025

    @weqoocu
    Author

    好像增加了一个css解决了。

    img {
    max-width: 860px; /* 最宽 860 px /
    width: 100%; /
    在小屏时自动缩小 /
    height: auto; /
    保持原始宽高比 /
    display: block; /
    去掉 inline 空隙,可选 */
    margin: 0 auto;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions