【问题标题】:why every image in my wordpress get large? even though the size of the image is small为什么我的 wordpress 中的每张图片都变大了?即使图像的尺寸很小
【发布时间】:2018-06-02 16:13:04
【问题描述】:

图片尺寸仅为 15x15。当我输入wordpress时。它自动变大。我想要默认大小。我放入 wodpress 的每张图片都在变大。即使我没有任何代码使它变大。

这是我的代码:

<img src="http://mainvasdaq.compy.global/wp-content/uploads/2017/12/Square_ble_Right-1.png" style="width"50%;" />

【问题讨论】:

  • 你上面提到的代码是安静的错误它应该是这样的样式="width:50%;" .

标签: wordpress image image-size


【解决方案1】:

有css写成

.dt-header-image img {
    width: 100%;
} 

在您的 style.css 行号 1846 中。

请在css下方评论或添加

.dt-header-image button img {
    width: auto !important;
}

【讨论】:

    【解决方案2】:

    您的内联样式中似乎有错字:

    <img src="http://mainvasdaq.compy.global/wp-content/uploads/2017/12/Square_ble_Right-1.png" style="width:50%;" />
    

    内联样式的一般格式如下:

    style="attribute:value"
    

    请注意上述语法中属性和值之间的 :

    更多信息可以在w3cMDN找到

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-14
      • 2011-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多