简体   繁体   English

为什么标记 <img> 放置到 <router-link> 默认获得CSS属性“ display:none!important”吗? 如何避免这种情况?

[英]Why tag <img> placed to <router-link> gets by default CSS property “display:none !important”? How to avoid this?

Why tag "IMG" placed to "router-link" tag, automatically gets by default "display:none !important" CSS property? 为什么将标签“ IMG”放置在“ router-link”标签上,默认情况下会自动获得“ display:none!important” CSS属性? I didn't use CSS style that could hide it. 我没有使用可以隐藏它的CSS样式。 Is it correct to place "IMG" tag inside "A" tag? 将“ IMG”标签放在“ A”标签内是否正确? How to avoid this situation? 如何避免这种情况?

<router-link to="#">
 <img src="https://pp.userapi.com/c625327/v625327331/33d5f/7rLtQQMckIA.jpg"     alt="test">
</router-link>

I think I found an answer. 我想我找到了答案。 The problem was with my AddBlock app installed in my browser. 问题是我的浏览器中安装了我的AddBlock应用程序。 My folder, where I store the image, had name "ad", and also the name of image file was containing the same word - "ad". 我存储图像的文件夹的名称为“ ad”,图像文件的名称也包含相同的单词“ ad”。 When I changed the name of the folder and the name of the image file, the problem was solved. 当我更改文件夹的名称和图像文件的名称时,问题已解决。

Tag "router-link" was working correct all this time. 标记“ router-link”一直在正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM