ผมกำลังสร้าง tool โปรแกรมคำนวณความสูงครับ แล้วคือว่า ต้องการจะได้ css tag มาเพิมความสวยงาม แบบรูป ต้องทำอย่างไงครับ
Q - อยากได้ css tag มาเพิ่มความสวยงามต้องทำอย่างไงครับ
Moderators: mindphp, ผู้ดูแลกระดาน
- Ittichai_chupol
- PHP VIP Members
- Posts: 3114
- Joined: 19/09/2018 10:33 am
-
- PHP VIP Members
- Posts: 4860
- Joined: 08/01/2018 10:03 am
Re: Q - อยากได้ css tag มาเพิ่มความสวยงามต้องทำอย่างไงครับ
ลองเพิ่ม css โค้ดนี้ดู
Code: Select all
.tags {
list-style: none;
margin: 0;
overflow: hidden;
padding: 0;
}
.tags li {
float: left;
}
.tag {
background: #eee;
border-radius: 3px 0 0 3px;
color: #999;
display: inline-block;
height: 26px;
line-height: 26px;
padding: 0 20px 0 23px;
position: relative;
margin: 0 10px 10px 0;
text-decoration: none;
-webkit-transition: color 0.2s;
}
.tag::before {
background: #fff;
border-radius: 10px;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
content: '';
height: 6px;
left: 10px;
position: absolute;
width: 6px;
top: 10px;
}
.tag::after {
background: #fff;
border-bottom: 13px solid transparent;
border-left: 10px solid #eee;
border-top: 13px solid transparent;
content: '';
position: absolute;
right: 0;
top: 0;
}
.tag:hover {
background-color: #337ab7;
color: white;
}
.tag:hover::after {
border-left-color: #337ab7;
}
Live Simply, Laugh Often, Love Deeply.....
Users browsing this forum: Baidu [Spider], Bing [Bot] and 22 guests