当单个文件须要特别样式时,就可使用内部样式表。能够在 head 部分经过 <style> 标签订义内部样式表。css
<head><style type="text/css">body {background-color: red}p {margin-left: 20px}</style></head>code
<style type="text/css">body {background-color: red}p {margin-left: 20px}</style>