Linking to External Stylesheets with HTTP:// or local path
问题 What are the pros and cons of each? Is there a difference? CSS Stylesheets in HTML. 回答1: I assume you're asking which of these you should use: <link rel="stylesheet" type="text/css" href="/file.css" /> <link rel="stylesheet" type="text/css" href="http://example.com/file.css" /> The difference between the two is that the former is called a relative path and the latter is an absolute path . If the HTML page in question is http://example.com/page.html , then there effectively is no difference.