开发者

Show text inside the image asp.net

I have an image in a gridview,

Show text inside the image asp.net

I want dynamic text inside this image. Text I am getting from this way from the database:

<%#DataBinder.Eval(Container.DataItem,"textForImage")%>

but to show inside t开发者_开发知识库his buuble? which control i have to use?


You can set this image as a background-image on a div and place the text inside the div and position it using CSS

<div class="bubble">
  <%#DataBinder.Eval(Container.DataItem,"textForImage")%>
</div>

.bubble
{
background-image:url(...);
}


You need to set the background image of a division to the bubble and then create the text inside that division.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜