After the previous 2 articles of CSS basic introducttion, let's talk about 5 Types of CSS Selector today...
1. Tag Name Selector
body{
font-size:16;font-family:"Arial"
}
h3{
font-size:24;text-decoration:underline;
}
2. Class Selector
div.content{
padding:10px;border:1px dashed #888888;
}
3. id Selector
#btn{
border:1px solid #888888;
background-color:#ffffff;padding:5px;
}
4. Pseudo-classes Selector
#btn:hover{
background-color:#888888;
}
input:focus{
border:2px solid #ff0000;
}
5. Cascading Selector
.content1 a{
color:#0000ff;
}
.content2 a{
color:#008800;
}
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!
>>: #4. Covid 19 Tracker(Vue版)
What's React Query !? React Query 是一个适合用於React Hoo...
前言 嗨嗨!笔者在这跟大家晚安,不知各位今天过得如何啊!有没有利用客制化的读书规划工具,来不断的提升...
您可能会因为错误的点击而意外删除重要的短信,或者在恢复出厂设置、系统崩溃、Android 更新、ro...
突然注意到信件夹出现ProtoPie 寄来的信,分享更多不同的教学。 很好奇他们是怎麽找到这些人,并...
这篇文章是用 x86-64 的架构作为例子,因为多数人的电脑是用 x86-64 的架构 只要依照 在...