0
点赞
收藏
分享

微信扫一扫

HTML调用CSS


外部样式表

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

内部样式表

<head>

<style type="text/css">
body {background-color: red}
p {margin-left: 20px}
</style>
</head>

内联样式

针对部件或者块

<p style="color: red; margin-left: 20px">
This is a paragraph
</p>


举报

相关推荐

HTML——CSS

HTML + CSS基础

HTML+CSS

html及css

css html js

HTML和CSS

0 条评论