是否有可能迫使一个WebControl的呈现为< D​​IV>代替&所述;跨度&GT ;? [英] Is it possible to force a WebControl to render as a <div> instead of a <span>?

查看:147
本文介绍了是否有可能迫使一个WebControl的呈现为< D​​IV>代替&所述;跨度&GT ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能强迫的WebControl 来呈现为一个< D​​IV> ?目前,它呈现为一个<跨度> 和我们的UI家伙prefers它是一个< D​​IV> 。为了迁就他,我倒要看看,如果这是可能的,如果是这样,它是如何可能的。

How can I force the WebControl to render as a <div>? Currently, it renders as a <span> and our UI guy prefers it be a <div>. To accommodate him, I'd like to see if this is possible and if so, how it's possible.

推荐答案

是的,这是绝对有可能。 Asp.net让你完全控制呈现的输出。

Yes, it is definitely possible. Asp.net gives you full control over the output rendered.

看看控制适配器

在asp.net团队已经发布的适配器对CSS的渲染友好像菜单,TreeView控件和FormView控件。看看 CSS的朋友控制适配器

The asp.net team has released many adapters for CSS friendly rendering for controls like Menu, TreeView, and FormView. Take a look at CSS friend control adapters

您可以随时建立自己的自定义绘制根据需要由用户界面的家伙。

You can always build your own to customize the rendering as needed by your UI guy.

这篇关于是否有可能迫使一个WebControl的呈现为&LT; D​​IV&GT;代替&所述;跨度&GT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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