常规的Web页面都是从页面删除样式,然后在样式表中填入一个外部文件或代码片段。
Normal Web pages have their style removed from the page and placed in an external file or section of the code, in a stylesheet.
通过将这些类的样式放入外部样式表,就能分离样式、数据和事件,这种分离对于复杂的页面至关重要。
By placing the style for these classes in external style sheets, you can keep the separation of style, data, and events that is crucial in complex pages. Take a look at some examples.
这允许您在预定的测试期间从页面元素中分析统计表,或者从外部工具中分析任何导入的历史数据。
This allows you to analyze statistics from the page elements during a scheduled test or to analyze any imported history data from external tools.
如果您的网站上的用户有每个会话的多个页视图,您的页面的许多重复使用相同的脚本和样式表,有缓存的外部文件一更大的潜在好处。
If users on your site have multiple page views per session and many of your pages re-use the same scripts and stylesheets, there is a greater potential benefit from cached external files.
最后,我将讨论如何在无需重新加载页面或调整外部样式表的情况下修改页面元素的CSS属性。
The final section will discuss how to modify the CSS characteristics of the page elements, without reloading the page or adjusting an external stylesheet.
您可以将这些样式规则直接套用至HTML项目,或加入至目前页面或外部样式表。
You can apply these style rules directly to HTML elements or add them either to the current page or to an external style sheet.
您可以将这些样式规则直接套用至HTML项目,或加入至目前页面或外部样式表。
You can apply these style rules directly to HTML elements or add them either to the current page or to an external style sheet.
应用推荐