[英]jade templating system hides div elements automatically?
I have this jade script and I'm trying to hide the 'menu', but it keeps hiding the copy div as well. 我有这个玉器脚本,我想隐藏“菜单”,但它也一直隐藏副本div。
#copy
h1 <span style="color:yellow">Hello</span>
#menu.hidden
p.we_are We are
p.approach Our Approach
p.we_love We Love
p.our_team Our Team
p.learn_more To Learn More
When it compiles to html it hides the copy div as well - I'm not sure if it has something to do indentation. 当它编译为html时,它也隐藏了div副本-我不确定它是否可以缩进。 Thanks for your help
谢谢你的帮助
Did you look at the source? 您是否看过来源? There's nothing in #copy unless you indent the next line.
除非您缩进下一行,否则#copy中没有任何内容。
#copy
h1
span(style='color:yellow') Hello
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.