【发布时间】:2014-03-06 08:47:08
【问题描述】:
我正在学习以下教程来了解如何开发 Windows 商店应用程序。
http://msdn.microsoft.com/en-us/library/windows/apps/hh986964.aspx
在step 5 中,它谈到了为什么它在.js 文件和.html 文件中注册事件处理程序;这是避免声明全局变量的预防措施。
不过稍后在step 6 中讨论如何使用css 设置应用程序的样式。它使用
#greetingOutput {
height: 20px;
margin-bottom: 40px;
}
我的问题是:CSS 是否仅适用于您的应用程序,还是像 javascript 代码一样是全局的?
【问题讨论】:
标签: javascript css visual-studio visual-studio-2013 windows-8.1