@importルールを使うと、外部のCSSファイルを取り込むことができます。また、ナビゲーター4にCSSを読み込ませないために使うこともできます。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META http-equiv="Content-Style-Type" content="text/css">
<title>TIPS008 外部スタイルシートを取り込む</title>
<style type="text/css">
<!--
@import url(outer.css);
-->
</style>
</head>
<body>
<h1>@import</h1>
<p>@importルールを使うと、外部のCSSファイルを取り込むことができます。また、ナビゲーター4にCSSを読み込ませないために使うこともできます。</p>
</body>
</html>
outerCSSの中味
body { background-color: #FA8; color: black;
margin-left: 2em; margin-right: 2em; }
h1 { background-color: black; color: white;
font-size: 1.5em; }
p { background-color: white; color: black;
padding: 0.5em; line-height: 1.5; }