Html & Css 带有 gif 的图像边框
Html & Css image border with a gif
我正在尝试构建一个 ASP.Net 网络应用程序,作为其中的一部分,我正在使用我也想应用边框的 gif。这是我的代码:
<img src="GemsIconGif.gif" width="42" height="42" alt="Gems" style="border-color:Gray; border-bottom:1px; border-left:1px; border-right:1px; border-top:4px; border-width:5px; border-radius: 6px;"/>
我做错了什么?
你没有给border-style
给图片边框样式。
喜欢:
border-style: solid;
或者任何你想要的。希望它解决了你的问题。
勾选Fiddle.
我正在尝试构建一个 ASP.Net 网络应用程序,作为其中的一部分,我正在使用我也想应用边框的 gif。这是我的代码:
<img src="GemsIconGif.gif" width="42" height="42" alt="Gems" style="border-color:Gray; border-bottom:1px; border-left:1px; border-right:1px; border-top:4px; border-width:5px; border-radius: 6px;"/>
我做错了什么?
你没有给border-style
给图片边框样式。
喜欢:
border-style: solid;
或者任何你想要的。希望它解决了你的问题。
勾选Fiddle.