新开发人员在实施或向其项目添加引导程序时通常会遇到问题。问题主要是在整个项目(即所有必需的文件)上实现引导程序而没有在项目的每个页面上添加样式表和脚本的情况下发生的。
在本文中,我们提供了一种简化的方法。
不使用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 > |