首页 WordPress函数大全 image_hwstring()

image_hwstring()

2020-05-02 / 3028阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

image_hwstring( int|string $width, int|string $height )

Retrieve width and height attributes using given width and height values.

描述

Both attributes are required in the sense that both parameters must have a value, but are optional in that if you set them to false or null, then they will not be added to the returned string.

You can set the value using a string, but it will>

参数

$width

(int|string)
(Required)
Image width in pixels.

$height

(int|string)
(Required)
Image height in pixels.

返回

(string) HTML attributes for width and, or height.

大家谈论
    我的见解