Heim > Web-Frontend > HTML-Tutorial > CSS 行内样式 页内样式 外部样式_html/css_WEB-ITnose

CSS 行内样式 页内样式 外部样式_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-24 11:17:25
Original
1355 Leute haben es durchsucht

行内标签:

<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title></title></head><!--style="background-color: red;"--><body style="background-color: red;"><!--行内样式-->    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <p style="font-size: 40px; color: yellow;">旭宝爱吃鱼</p>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div>    <div style="font-size: 30px; color: red; background-color: green;">旭宝爱吃鱼</div></body></html>
Nach dem Login kopieren

图片

业内标签:

<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title></title>    <!--      css遵循一个规律:      1.就近原则      2.叠加原则    -->    <style>        div{           color: purple;           font-size: 40px;           background-color: yellowgreen;        }        p{            color: deeppink;            font-size: 50px;        }    </style>    <link href="css/index.css" rel="stylesheet"></head><body>   <div style="color: hotpink; background-color: red;">旭宝爱吃鱼</div>   <div>旭宝爱吃鱼</div>   <div>旭宝爱吃鱼</div>   <div>旭宝爱吃鱼</div>   <div>旭宝爱吃鱼</div>   <p>旭宝爱吃鱼</p>   <p>旭宝爱吃鱼</p>   <p>旭宝爱吃鱼</p>   <p>旭宝爱吃鱼</p></body></html>
Nach dem Login kopieren

图片:

外部样式:

div{    color: brown;    font-size: 50px;}p{    background-color: yellow;    color: darkgreen;    font-size: 39px;}
Nach dem Login kopieren

图片:

<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title></title>    <link rel="stylesheet" href="css/index.css"></head><body>   <div>旭宝爱吃鱼</div>   <p>旭宝爱吃鱼</p></body></html>
Nach dem Login kopieren

图片:

Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage