inline element styles 内联元素样式
Another way to apply style changes only once is to change the CSS class name instead of changing the inline styles.
另一个一次性改变风格的办法是修改CSS的类名称,而不是修改内联风格代码。
(If you don't believe that, try to release any Web app without Cascading style Sheets (CSS) or inline styles, and see how that goes over!)
(如果您不相信,可以尝试发布没有层叠样式表(CSS)或内联样式的Web应用程序,看一下会有什么样的效果!)
A style that is defined in markup is considered to be in use as soon as it is loaded from a resource dictionary (for resources), or the page it is contained within is loaded (for inline styles).
对于在标记中定义的样式,一旦从资源字典加载它之后(对于资源),或者加载包含它的页之后(对于内联样式),就将其视为正在使用。
应用推荐