样式表无法正确呈现 [英] Stylesheet is not rendering properly

查看:165
本文介绍了样式表无法正确呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我添加了一个样式表.当我将.aspx与样式表链接时,在设计期间无法查看.但是,如果运行该样式,则可以正确呈现样式.如何在设计期间看到样式表效果?
在此先感谢您的帮助

Hi There,
I have added a Stylesheet.When I link an .aspx with the stylesheet it is not viewable during desgn time.But if it runs the style is properly rendered.How can I see the stylesheet effect during the design time?
Thanks in advance for ur help

推荐答案

当我将.aspx与样式表链接时,在设计期间无法查看.


我会认为您正在使用像Visual Studio这样的开发工具?如果您是动态分配的,则将无法看到样式.但是,如果您要在< head>中分配它,页面标签,您必须能够在页面的设计模式下查看样式.
您能否提供有关如何使用样式表的更多详细信息?
When I link an .aspx with the stylesheet it is not viewable during desgn time.


I will consider you are using a development tool like Visual Studio? If you are assigning it dynamically, you won''t be able to see the styles. But if you are assigning it in the <head> tag of your page, you must be able to see the styles in the design mode of the page.
Can you give more details of how are you using the stylesheet?


好吧,您不能那样做.样式表在运行时应用.

如果需要检查任何特定样式,则需要直接在控件上尝试.

如果您了解样式表的工作原理,则可以确定样式表文件路径已嵌入到您的网页中,并且在呈现页面时,它是从给定位置中选取的.
Well, you cannot as such. Stylesheets are applied at runtime.

If you need to check any particular style then you need to try that directly on the control.

If you see how stylesheets work, you can figure out that the stylesheet file path is embedded in your webpage and at the time of rendering the page, it is picked from the given location.


这篇关于样式表无法正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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