开发者

Show text inside the image asp.net

开发者 https://www.devze.com 2023-02-20 17:29 出处:网络
I have an image in a gridview, I want dynamic text inside this image. Text I am getting from this way from the database:

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

精彩评论

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

关注公众号