新开发人员在为他们的项目实施或添加引导程序时通常会遇到问题。问题主要发生在在整个项目中(即在所有必需的文件上)实施引导程序,而没有在项目的每个页面上添加样式表和脚本。
在本文中,我们提供了一种简化的方法。
不使用 Bootstrap 的示例:
<
html
>
<
head
>
<
style
>
.green {
color: green;
}
.yellow {
color: yellow;
}
.red {
color: red;
}
.blue {
color: blue;
}
.grey {
color: grey;
}
style
>
head
>
<
body
>
<
h1
>Geeksforgeeks
h1
>
<
p
class
=
"green"
>This text is in green color
p
>
<
p
class
=
"yellow"
>This text is in yellow color
p
>
<
p
class
=
"red"
>This text is in red color
p
>
<
p
class
=
"blue"
>This text is in blue color
p
>
<
p
class
=
"grey"
>This tag is in grey color
p
>
body
>
html
>
< html > < head > < style > .green { color: green; } .yellow { color: yellow; } .red { color: red; } .blue { color: blue; } .grey { color: grey; }
style >
head > < body > < h1 >Geeksforgeeks h1 > < p class = "green" >This text is in green color p > < p class = "yellow" >This text is in yellow color p > < p class = "red" >This text is in red color p > < p class = "blue" >This text is in blue color p > < p class = "grey" >This tag is in grey color p >
body >
html > |