• 2022-06-01
    有一样式表文档sheet1.css,现要将该样式表文档中定义的样式应用到当前页面中,下列方法正确的是( )。
    A: 将下列代码插入文档的<HEAD>部分中: <style type = "text/css">@import url('sheet1.css')</style>
    B: 将下列代码插入文档的<HEAD>部分中: <link rel="stylesheet" type="text/css" href="sheet1.css">
    C: 将下列代码插入文档的<HEAD>部分中: <style type = "text/css"> <link rel="stylesheet" type="text/css" href="sheet1.css"> </style>
    D: 在每个要使用sheet1.css样式的元素的style属性中引用该样式表文档
  • 举一反三