如何重叠两个标签 [英] How to overlap two labels

查看:191
本文介绍了如何重叠两个标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net 3.5中重叠两个标签(在完全相同的位置)?

How to overlap two labels(at the exactly same location) in asp.net 3.5?

推荐答案

实际上,它不需要在ASP.NET中重叠标签(就像在Winforms中一样).您可以使用javascript或从服务器端更改标签文本,并且相同的标签似乎会重叠.

当然,您可以通过将标签放置在不同的div中并对其应用left:样式来重叠标签.但是,我不建议这样做,因为它在不同的浏览器中会以不同的方式工作.
Actually its not required to overlap the labels in ASP.NET ( as you do in Winforms). You can change the label text using javascript or from the server side and the same label will seem to be overlapped.

You can ofcourse overlap the labels by placing them into the different divs and applying the left: styles to it. However I wont recommend it since it will work differently in different browsers.


也许还有其他解决方案,但是我会这样:

您可以在style属性中将标签的位置设置为css或inline,并且position:tabsulute必须为se.
可以使用z-index
Mabe there are other solutions, but i would do that this way:

You could set the position of the labels in css or inline in the style attribute, and the position:tabsulute has to be se.
the priority can be set with the z-index


设置优先级.签出此生成器.使用在一起的距离如何?"字段以使文本重叠.
http://www.poqbum.com
/overlapingtxt/index.php?act=generate
[ ^ ]

祝你好运!
Check out this generator. Use the "How close Together?" field to make the text overlap.
http://www.poqbum.com
/overlapingtxt/index.php?act=generate
[^]

Good luck!


这篇关于如何重叠两个标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆