CSS 定義的四種方法

CSS定義總共有四種方法:
  <1>行內式(內聯式):<h1 style="color:white;background-color:blue">This is a of Text.</h1>
  <2>內嵌式(內部樣式表):<style type="text/css">
             h1{
                color:white;
                background-color:blue
               }
             </style>
  <3>導入式(外部樣式表):<style type="text/css">
              @import"mystyle.css";
             </style>
  <4>連接式(外部樣式表):<link href="mystyle.css" rel="stylesheet" type="text/css" />
css

相關文章
相關標籤/搜索