热门关键字:
jquery > jquery教程 > jquery教程 > css页面引入方法

css页面引入方法

404
作者:管理员
发布时间:2020/7/28 9:47:27
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Show.aspx?id=2240

1、外联式:通过link标签,链接到外部样式表到页面中。

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

2、嵌入式:通过style标签,在网页上创建嵌入的样式表。

<style type="text/css">
 div{ width:100px; height:100px; color:red }
 ......
</style>

3、内联式:通过标签的style属性,在标签上直接写样式。

<div style="width:100px; height:100px; color:red ">......</div>




如果您觉得本文的内容对您的学习有所帮助:支付鼓励



关键字:css
友荐云推荐