// 前方一致
div[id^="block"] {
backgorund-color: #ddd;
}
// 後方一致
p[class$="txt"] {
margin-left: 20px;
color: #f00;
}
// 部分一致
.test[id*="About"] {
margin: 10px;
border: 1px solid #f90;
}
// パスに「/php」を含む場合
#blockLinkList a[href*="/php"] {
background-color: #ffc;
}
// パスに「/css」を含む場合
#blockLinkList a[href*="/css"] {
background-color: #fcc;
}