为什么我的登录状态链接无法使用 BlueprintCSS 的 print.css 正确呈现

发布于 2024-09-28 19:45:29 字数 293 浏览 1 评论 0原文

我试图在我的应用程序中实现 BlueprintCSS 网格框架,在包含它为我的链接调用的脚本后,它变得很奇怪。我将其范围缩小到 print.css。正在徘徊是否有人以前遇到过这个。

这是呈现

Logout (javascript:__doPostBack('ctl00$LoginStatus1$ctl00',''))

内容显然,删除 print.css 修复这个问题但是,为什么呢?这是浏览器屏幕? IE8 和 Chrome 的渲染效果相同。

I am attempting to implement the BlueprintCSS grid framework in my app and after including the scripts it calls for my links are rendering weird. I have it narrowed down to the print.css. was wandering if anyone has run across this before.

Here's what renders

Logout (javascript:__doPostBack('ctl00$LoginStatus1$ctl00',''))

Obviously, removing the print.css fixes this problem but, why? This is the browser screen? IE8 and Chrome both render the same.

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

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

发布评论

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

评论(1

笔落惊风雨 2024-10-05 19:45:29

我相信这是由 Blueprint 使用 :aftercontent 内容生成属性引起的。这样做的用途显然是为了让人们在阅读印刷文档时可以看到链接的位置,因为您显然无法单击纸张来查找!

解决此问题的最简单方法是删除或更改此规则集,以排除您的登录链接:

a:link:after, a:visited:after {
    content:" (" attr(href) ")";
}

当然,不在 href 属性中使用内联 Javascript 也是一个好主意。

I believe this is caused by Blueprint's use of the :after and content content generation properties. The use for this is obviously so that people when reading printed documents they can see where links go to, since you obviously can't click on the paper to find out!

The easiest way to solve this problem is to remove, or change so that excludes your login link, this ruleset:

a:link:after, a:visited:after {
    content:" (" attr(href) ")";
}

Of course, it would also be a good idea to not use inline Javascript in the href attribute.

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