1
我有一個網址我想建立一個看起來像這樣:在asp.net MVC4剃刀如何使嵌入分號
http://cache.mysite.com/sponsorimage/718.jpg;format=gif;w=50;h=50;scale=both;mode=pad;bgcolor=white
創建它的剃鬚刀是這樣的:
@(sponsor.ImageURL)
<img src="@(sponsor.ImageURL);format=gif;w=50;h=50;scale=both;mode=pad;bgcolor=white" alt="@sponsor.SponsorName" />
這只是感覺難看。我是剃鬚刀新手。什麼是更好的方法來做到這一點。也就是說,在字符串中嵌入分號