โดย jamepiyawat » 20/09/2019 3:50 pm
พอดีว่าผมได้ไปก๊อบปี้ path way จากที่อื่นมาเพื่อหวังว่าจะสามารถเอามาใช้ได้แต่กลับกลายเป็นว่า path way ที่แสดงผลออกมากลับไม่สวยงามเลย
รบกวนช่วยดู code ให้หน่อยว่าผมจะต้องแก้ตรงไหนถึงจะเป็นลูกศรชี้ ๆ ได้เหมือนของเขาครับ
- Selection_999(919).png (9.02 KiB) Viewed 1116 times
โด้ด css
โค้ด: เลือกทั้งหมด
#breadcrumb {
list-style: none;
display: inline-block;
}
#breadcrumb .icon {
font-size: 14px;
}
#breadcrumb li {
float: left;
}
#breadcrumb li {
color: #FFF;
display: block;
background: #e7325a;
text-decoration: none;
position: relative;
height: 40px;
line-height: 40px;
padding: 0 10px 0 5px;
text-align: center;
font-size: 13px;
}
#breadcrumb li:nth-child(even) a {
background-color: #e7325a;
}
#breadcrumb li:nth-child(even) a:before {
border-color: #e7325a;
border-left-color: transparent;
}
#breadcrumb li:nth-child(even) a:after {
border-left-color: #e7325a;
}
#breadcrumb li:first-child a {
padding-left: 15px;
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px;
border-radius: 4px 0 0 4px;
}
#breadcrumb li:first-child a:before {
border: none;
}
#breadcrumb li:last-child a {
padding-right: 15px;
-moz-border-radius: 0 4px 4px 0;
-webkit-border-radius: 0;
border-radius: 0 4px 4px 0;
}
#breadcrumb li:last-child a:after {
border: none;
}
#breadcrumb li a:before, #breadcrumb li a:after {
content: "";
position: absolute;
top: 0;
border: 0 solid #e7325a;
border-width: 20px 10px;
width: 0;
height: 0;
}
#breadcrumb li a:before {
left: -20px;
border-left-color: transparent;
}
#breadcrumb li a:after {
left: 100%;
border-color: transparent;
border-left-color: #e7325a;
}
#breadcrumb li:after {
content: "";
z-index: 1;
border: #fff 0px solid;
border-width: 20px 10px;
border-color: transparent;
border-left-color: #fff;
}
#breadcrumb li a:hover {
background-color: #e65272;
}
#breadcrumb li a:hover:before {
border-color: #e65272;
border-left-color: transparent;
}
#breadcrumb li a:hover:after {
border-left-color: #e65272;
}
#breadcrumb li a:active {
background-color: #e65272;
}
#breadcrumb li a:active:before {
border-color: #e65272;
border-left-color: transparent;
}
#breadcrumb li a:active:after {
border-left-color: #e65272;
}
สิ่งที่อยากได้
- Selection_999(920).png (4.56 KiB) Viewed 1116 times
พอดีว่าผมได้ไปก๊อบปี้ path way จากที่อื่นมาเพื่อหวังว่าจะสามารถเอามาใช้ได้แต่กลับกลายเป็นว่า path way ที่แสดงผลออกมากลับไม่สวยงามเลย
รบกวนช่วยดู code ให้หน่อยว่าผมจะต้องแก้ตรงไหนถึงจะเป็นลูกศรชี้ ๆ ได้เหมือนของเขาครับ
[attachment=1]Selection_999(919).png[/attachment]
โด้ด css
[code]
#breadcrumb {
list-style: none;
display: inline-block;
}
#breadcrumb .icon {
font-size: 14px;
}
#breadcrumb li {
float: left;
}
#breadcrumb li {
color: #FFF;
display: block;
background: #e7325a;
text-decoration: none;
position: relative;
height: 40px;
line-height: 40px;
padding: 0 10px 0 5px;
text-align: center;
font-size: 13px;
}
#breadcrumb li:nth-child(even) a {
background-color: #e7325a;
}
#breadcrumb li:nth-child(even) a:before {
border-color: #e7325a;
border-left-color: transparent;
}
#breadcrumb li:nth-child(even) a:after {
border-left-color: #e7325a;
}
#breadcrumb li:first-child a {
padding-left: 15px;
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px;
border-radius: 4px 0 0 4px;
}
#breadcrumb li:first-child a:before {
border: none;
}
#breadcrumb li:last-child a {
padding-right: 15px;
-moz-border-radius: 0 4px 4px 0;
-webkit-border-radius: 0;
border-radius: 0 4px 4px 0;
}
#breadcrumb li:last-child a:after {
border: none;
}
#breadcrumb li a:before, #breadcrumb li a:after {
content: "";
position: absolute;
top: 0;
border: 0 solid #e7325a;
border-width: 20px 10px;
width: 0;
height: 0;
}
#breadcrumb li a:before {
left: -20px;
border-left-color: transparent;
}
#breadcrumb li a:after {
left: 100%;
border-color: transparent;
border-left-color: #e7325a;
}
#breadcrumb li:after {
content: "";
z-index: 1;
border: #fff 0px solid;
border-width: 20px 10px;
border-color: transparent;
border-left-color: #fff;
}
#breadcrumb li a:hover {
background-color: #e65272;
}
#breadcrumb li a:hover:before {
border-color: #e65272;
border-left-color: transparent;
}
#breadcrumb li a:hover:after {
border-left-color: #e65272;
}
#breadcrumb li a:active {
background-color: #e65272;
}
#breadcrumb li a:active:before {
border-color: #e65272;
border-left-color: transparent;
}
#breadcrumb li a:active:after {
border-left-color: #e65272;
}
[/code]
สิ่งที่อยากได้
[attachment=0]Selection_999(920).png[/attachment]