AD

CSS files are linked, or should be embedded?

Method 1:

Home completely embedded in the method used, with links to other pages are way. Pros: This page in the network conditions to ensure a bad situation can still display correctly. Disadvantages: modify the styles need to modify the external style sheet and page the embedded style sheet in two places.

Method 2:

Will be responsible for the layout style and other styles to write separately. Home embed style layout, links, other styles; other page links are used for two way style. Advantages: style changes, the small amount of work than the first. Network is not good, the Home can not guarantee the appearance, but at least the layout will be out.

For each page will use the style: the link. For only this one page will be used, but used many times in the style: embedded <head>.

For only this one page will be used and only used once the style: embedded <head> or simply write directly to solve the problem.
标签: lt, appearance, css files, style layout, external style sheet, bad situation, style changes, layout style
分类: Web
时间: 2010-04-10

相关文章

  1. How to reference css files Liferay

    Do not use the following reference in this way in the page CSS file, <link type="text/css" rel=&q ...
  2. minify javascript and css files with head

    For Web applications,, HTTP request is a luxury thing, so we have to minimize it. HTTP request to reduce site ...
  3. Consolidation in the service-side JavaScript and CSS files and compression

    Web Performance Tuning Best Practices of the most important one is to reduce HTTP requests , it is also YSlow ...
  4. Web Performance Tuning: JavaScript and CSS files combined

    Best Practices in Web Performance Optimization of the most important one is to reduce the HTTP request, it is ...
  5. mvn jetty locks js, css files

    Grails transferred recently from the spring mvc, former grails of mvn grails: run-app has been using very high ...
  6. Dynamic load JS / CSS files

    Dynamic load JS / CSS file, you can determine whether loaded. function loadScript(url, callback) { var script ...
  7. How to use only the tomcat in the case of automatic cache js and css files, or image, etc.

    The method is divided into the following three steps Step one: write a filter, according to a regular path to ...
  8. Call external js files, css files

    Document about the introduction of a web page (including) the external JS file. Page document (in <head> ...
  9. Introduced in the css css files. And js files in the js method is introduced

    When the css or js file more time to change all the old code for the page is a very collapse of the things men ...
  10. Dynamic load JS / CSS files - improved version

    function loadScript(url, callback,targetWin) { if(!targetWin) targetWin = self; var script = targetWin.documen ...
  11. Aborted CSS? - Ext JS

    Hi Have a problem with css. I have a page using Ext and a own css. It works great. However. When I put that pa ...
  12. The use of link or @ import introduce the difference between css file

    Taobao recent study at the website and found that the introduction of css page one of many ways to use the @ i ...
  13. Page document called CSS file

    Page document called the dark horse CSS file ◇ CSS as efficient, flexible and is widely used in web page produ ...
  14. Access to Web pages with JavaScript js.css.Flash and other documents

    Contents I. Introduction II E books or web pages from the files of the general steps to get three, from E to g ...
  15. Access to Web pages with JavaScript and other documents js.css.Flash

    Contents I. Introduction II E books or web pages from the files of the general steps to get three, from E to g ...
  16. The introduction of CSS in the html method

    In html, the introduction of main methods css inline type, embedded, into type and link type 4 1. Within the t ...
  17. Summary of commonly used CSS tips

    One. Using css abbreviations Abbreviations can help reduce your CSS file size, easier to read. The main rule c ...
  18. YUI Grids CSS 003 - Getting Started tutorial

    First, we propose using the following this! DOCTYPE to call the browser's standard browser mode (if the browse ...
  19. CSS Notes

    A: How to jsp page in the introduction of css style sheet file? 1, first of all to write the contents of the c ...