ASP.NET MVC Razor - Linkshare - Increase Image Size
I just downloaded the Microsoft.Web.Helpers 开发者_JAVA百科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?)
精彩评论