作者woti (.......)
看板Web_Design
標題[問題] 有關匯入外部css的問題
時間Mon Jun 30 21:54:21 2014
1.
有一個css檔(A.css),內容如下:
@media print{
.b{
background: none;
}
}
匯入到html,語法如下:
<head>
<style>
@import url(A.css );
</style>
</head>
2.
現在將A.css改寫,內容如下:
.b{
background: none;
}
匯入到html,語法如下:
<head>
<style type="text/css" media="print">
@import url("A.css");
</style>
</head>
請問2的方式跟1一樣作用嘛?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.134.210.237
※ 文章網址: http://webptt.com/m.aspx?n=bbs/Web_Design/M.1404136464.A.E30.html
1F:推 tomin:一樣 07/01 00:05
※ 編輯: woti (220.134.210.237), 07/01/2014 18:51:39