我不知道为什么img
标记内的picture
不想显示?有任何想法吗?
谢谢!
<picture data-qa-node="picture" data-qa-file="AppBlocksCarousel">
<source srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.webp 1x, http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.webp 2x, http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.webp 3x" type="image/webp" data-qa-node="source"
data-qa-file="AppBlocksCarousel">
<img src="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png 2x, http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png 3x" alt="Google"
class="AppBlocksCarousel__image_2gZ2B" data-qa-node="img" data-qa-file="AppBlocksCarousel">
</picture>
答案 0 :(得分:5)
您的图像路径错误。看看我的例子
<picture data-qa-node="picture" data-qa-file="AppBlocksCarousel">
<source srcset="https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" type="image/webp" data-qa-node="source"
data-qa-file="AppBlocksCarousel">
<img src="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png 2x, http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png 3x" alt="Google"
class="AppBlocksCarousel__image_2gZ2B" data-qa-node="img" data-qa-file="AppBlocksCarousel">
</picture>
答案 1 :(得分:0)
我相信这是图片:(source
标签中的网址错误)
<picture data-qa-node="picture" data-qa-file="AppBlocksCarousel">
<source srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" type="image/webp" data-qa-node="source"
data-qa-file="AppBlocksCarousel">
<img src="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" alt="Google"
class="AppBlocksCarousel__image_2gZ2B" data-qa-node="img" data-qa-file="AppBlocksCarousel">
</picture>
答案 2 :(得分:0)
您要查找的图像在此URL上不可用
http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png
尝试一下
<picture data-qa-node="picture" data-qa-file="AppBlocksCarousel">
<source srcset="https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" type="image/webp">
<img src="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" srcset="http://diylogodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png, http://diy logodesigns.com/blog/wp-content/uploads/2016/04/google-logo-icon-PNG-Transparent-Background.png" alt="Google">
</picture>