ASP.NET MVC Razor - Linkshare - Increase Image Size
-
26-09-2019 - |
문제
I just downloaded the Microsoft.Web.Helpers package from nupack and added linkshare to my site using @Linkshare.GetHtml() syntax. It works extremely well - except the icons for social sites are tiny. Does anyone know of any way to increase these to a larger size? Looking at the API I don't see anything but perhaps there is something on the CSS level?
Thanks in advance,
JP
해결책
This is currently not built into the API. I'm not even sure if the various services provide icons that are larger than 16x16 pixels. You could manually modify the style that the control emits:
@(new HtmlString(LinkShare.GetHtml().ToHtmlString().Replace("width:16px", "width:32px")))
But this is a bit ugly. Why do you need for them to be larger (when most sites on the Internet are doing fine with the current size?)
제휴하지 않습니다 StackOverflow