Umbraco-奇怪的样式表问题

发布于 2024-07-30 02:19:28 字数 489 浏览 7 评论 0原文

我正在开发一个将嵌入到 Umbraco 中的用户控件。 这是一个漫长的过程,但我已经让它大部分工作了。

此时,我在 Umbraco 中有一个模板,它将我的 Web 控件称为 marco。 到目前为止,一切都很好。 它在 Firefox 中看起来很棒,但在 IE7 中就崩溃了。

奇怪的是,当我在 Umbraco 之外的测试项目中查看该控件时,该控件在 IE7 和 Firefox 中看起来都很完美。 在 Umbraco 内部,Firefox 看起来很棒,而 IE7 则很糟糕。 某些样式适用于 IE7,但其他样式则不然,从而破坏了渲染。

我已经检查以确保 CSS 文件位于 Umbraco 中的正确位置,并尝试了其他一些方法,但没有成功。 我想不出只有当控件托管在 Umbraco 中时才会导致 IE 以这种方式破坏的任何事情。 如果 CSS 文件无法访问,则它应该完全损坏,而不是应用某些样式而不应用其他样式。

TIA

I'm developing a user control that will be embedded in Umbraco. It's been a long slog but I've got it mostly working.

At this point I have a template in Umbraco that refers to my web control as a marco. So far so good. It looks great in Firefox, but breaks in IE7.

The weird part is that the control looks perfect in both IE7 and Firefox when I view it in my test project, outside of Umbraco. Inside Umbraco, Firefox looks great and IE7 breaks. Some of the styles are applied in IE7 but not others, breaking the rendering.

I've checked to make sure the CSS files are in the right place in Umbraco, experimented with a few other things, but no luck. I can't think of anything that would cause IE to break this way only when the control is hosted in Umbraco. If the CSS files were inaccessible, it should break completely, not apply some of the styles but not others.

TIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧情别恋 2024-08-06 02:19:28

EUREKA:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

我的模板中没有它。 呃。

EUREKA:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I didn't have it in my template. Duh.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文