为什么我的wordpress中的每个图像变大?即使图像的大小很小

问题描述 投票:1回答:2

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

enter image description here

这是我的代码:

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

enter image description here

wordpress image image-size
2个回答
1
投票

看起来您的内联样式中存在拼写错误:

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

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

style="attribute:value"

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

更多信息可以在w3cMDN找到


0
投票

有css写的

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

在你的style.css第1846行。

请评论或添加以下CSS

.dt-header-image button img {
    width: auto !important;
}
© www.soinside.com 2019 - 2024. All rights reserved.