gpt4 book ai didi

css - 什么是 Caio 黑客?

转载 作者:太空宇宙 更新时间:2023-11-03 23:59:31 27 4
gpt4 key购买 nike

我在 Dreamweaver 中右击我的行号,试图为一行添加书签。

我注意到这个菜单项:

什么是 Caio Hack? alert('hi'); 突出显示,结果如下:

最佳答案

这是一个古老的 CSS hack。

"Caio Hack is a simple CSS comments-based hack used in 'inline' and 'external' CSS declarations to hide information from Netscape 4"

例如,此代码将 .foo2 选择器隐藏到 Netscape 4:

.foo1
{
color: green;
background-color: yellow;
}
/*/*/
.foo2
{
color: red;<code></code>
}
/* */
.foo3
{
color: blue;
}

来源:http://en.wikibooks.org/wiki/Cascading_Style_Sheets/Hacks_and_Filters/Caio_Hack

关于css - 什么是 Caio 黑客?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17347687/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com