<div style="padding:10px;width:300px;border:1px dashed blue;margin-top:5px;margin-bottom:5px"
p {
color:green
}
Selector: apply to
<h1>
.Property
More examples of selectors
<style type="text/css">
.title{.............}
.content{............}
.keyword{.............}
</style>
Meanwhile, we have to insert <class=”title/content/keyword”>
into the division where we need the selector. This is my selector:
.box{
position:absolute;right:0px;top:0px;
width:100px;height:100px;background-color:green
}
The box will be positioned basing on where we input the <div class="box"></div>
.
Another example of a relative position in a sentence.
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article.
Feel free to comment and share your ideas below to learn together!
前言 前面文章提到发现在 Codecademy 上面有 React 的教学! Codecademy ...
超音波倒车雷达 教学原文参考:超音波倒车雷达 这篇文章会介绍如何使用超音波感测器和蜂鸣器,搭配「变数...
全球个资保护如雨後春笋般的出现,各国对於个资保护的意识更加积极主动,且也陆续参考GDPR进行个资隐私...
已经旅游到几乎开始习惯颓废了,所以要开始奋发!所以一早(有点晚,应该叫一晚?)就去很多插座的咖啡店。...
前言 今天的题目在这里: 848. Shifting Letters,被归类为medium,乍看之下...