且试天下
哥们感谢你的提醒,不晓得你修改的是哪个版本的,我现在的是v2.0.9,我看了baseHtml是OK的啊。
/** * Generates an image tag. * @param array|string $src the image URL. This parameter will be processed by [[Url::to()]]. * @param array $options the tag options in terms of name-value pairs. These will be rendered as * the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]]. * If a value is null, the corresponding attribute will not be rendered. * See [[renderTagAttributes()]] for details on how attributes are being rendered. * @return string the generated image tag */ public static function img($src, $options = []) { $options['src'] = Url::to($src); if (!isset($options['alt'])) { $options['alt'] = ''; } return static::tag('img', '', $options); }
这应该是以前某个版本的bug 应该是2.0.8版本的 2.0.9版本的没有这个问题
- 且试天下 回答了问题 请问YII2 对话框是怎么实现的?
我用layer插件 大公司都用这个插件 兼容IE6
- 且试天下 2016-08-19 已签到连续签到1天,获得了5个金钱
- 且试天下 回答了问题 yii2 中支付宝和微信支付的使用?大神求教!
有sdk的
- 且试天下 提出了问题yii Html类生成img标签的bug
- 且试天下 2016-08-16 已签到连续签到1天,获得了5个金钱
- 且试天下 2016-08-12 已签到连续签到1天,获得了5个金钱
- 且试天下 2016-08-10 已签到连续签到1天,获得了5个金钱