为什么我的登录状态链接无法使用 BlueprintCSS 的 print.css 正确呈现
我试图在我的应用程序中实现 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这是由 Blueprint 使用
:after
和content
内容生成属性引起的。这样做的用途显然是为了让人们在阅读印刷文档时可以看到链接的位置,因为您显然无法单击纸张来查找!解决此问题的最简单方法是删除或更改此规则集,以排除您的登录链接:
当然,不在
href
属性中使用内联 Javascript 也是一个好主意。I believe this is caused by Blueprint's use of the
:after
andcontent
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:
Of course, it would also be a good idea to not use inline Javascript in the
href
attribute.