문제

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?)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top