如何在ASP.Net C#中添加到内容页面 [英] how to add to content page in ASP.Net C#

查看:89
本文介绍了如何在ASP.Net C#中添加到内容页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
任何人都知道
如何添加< style>到ASP.Net C#中的内容页面?

我正在尝试添加此内容,但< style>标签引发元素样式错误
不能嵌套在< td>中

在母版页中,我使用了表格
在第2个< td>的tr中我添加了内容页面持有者.

请回复...

hello
any body knows
how to add <style> to content page in ASP.Net C#?

i am trying add this but <style> tag raise error that element style
can''t nested within <td>

in master page i taken table
in tr of 2 nd <td> i added content page holder.

plz reply......

推荐答案

< style>是什么意思?标签?

如果要将样式添加到表或任何其他html元素中,则可以在其中添加属性样式".
如果需要,还可以使用CssClass来应用样式.

样式不是有效的标签,即使未嵌套在表中,样式也会在设计器中产生错误.
What do you mean by <style> tag?

If you want to add style to the table or any other html elements then you have attribute ''style'' in them for it.
You can also use CssClass in order to apply styles if needed.

Style is not a valid tag and will give error in designer even if not nested in table.


这篇关于如何在ASP.Net C#中添加到内容页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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