如何安排动态创建的html标签 [英] How to arrange dynamically created html tags

查看:73
本文介绍了如何安排动态创建的html标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好frndz,



我使用C#代码生成复杂的HTML。

当我生成HTML页面时,在源代码中,标签没有安排。

如何安排这些html标签。



提前谢谢...

hello frndz,

I am generating a complex HTML using C# code.
When I generate HTML Page, in the source, tags are not arranged.
How to arrange these html tags.

Thanks in advance...

推荐答案

没有标签的安排这样的东西;但元素以某种方式排列。所有标签都以分层文档的形式定义,格式为HTML。生成HTML代码时,可以使用各自的父项定义元素之间的父/子关系及其顺序。并且在文档上呈现期间创建排列;它取决于许多其他因素,首先是缩放和浏览器窗口客户区的实际宽度。



如果使用元素的绝对定位,这是一个不同的故事;而且我非常不鼓励使用它。在所有情况下,学习CSS。



-SA
There is no such thing as "arrangment of the tags"; but the elements are arranged somehow. All the tags are defined in a hierarchical document in the format called HTML. When you generate HTML code, you define the parent/child relationships between elements and their sequential order withing their respective parents; and the arrangement is created during rendering on the document; and it depends on a number of other factors, first of all, scaling and the actual width of the client area of a browser window.

If you use absolute positioning of elements, this is a different story; and I would highly discourage using it. In all cases, learn CSS.

—SA


这篇关于如何安排动态创建的html标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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