ซ่อนคอมเม้น ใน hi5 กดดูคลิปด้านบนก่อน จะเข้าใจมากขึ้นครับ
code ตัวนี้คือการซ่อน comment แบบไม่ให้ใครเห็นเลยครับ เขาจะเห็นเพียงชื่อและภาพของเพื่อนที่เข้ามา comment ให้กับเราเท่านั้น
.subsection .comment {
height: 60px !important;
///// ความสูงของ แต่ละช่อง คือ 60 pixel}
.comment-picture ,.comment-picture a img{
width:60px!important;
//// ภาพเพื่อน กว้าง 60 pixelheight:60px!important;
//// ภาพเพื่อน สูง 60 pixel border:none; //// ไม่แสดง กรอบ
}
.section .comment-text {
display: none!important;
//// ไม่แสดง ข้อความของเพื่อน}
ดูตรงนี้ครับ เผื่อเอาไปปรับใช้กันเอง ตรง code ในส่วนแรก .subsection .comment {
สังเกตุให้ดีนะครับ ว่า ผมให้ height: 60px
และในส่วนที่ 2 ภาพของเพื่อนผมก็ให้ height: 60px เช่นกัน
ดังนั้น ถ้าต้องการจะปรับขนาดภาพเพื่อนคุณให้ใหญ่ขึ้น เช่น 100x100 ก็ต้องไปปรับ ความสูงของส่วนแรกให้เป็น 100px ด้วยนะครับ<style type="text/css">
///////// Hide Comment by dekitclub.com /////////
.subsection .comment {
height: 60px !important;
}
.comment-picture ,.comment-picture a img{
width:60px!important;
height:60px!important;
border:none;
}
.section .comment-text {
display: none!important;
}
/////// http://dekitclub.hi5.com ///////
</style>
นำโค๊ดไปใส่ที่ไหน มาดูที่นี่ครับhttp://forum.dekitclub.com/index.php/topic,959.0.html