Thêm hình ảnh vào bình chọn

PVS

Generalissimo
Thành viên BQT
Thêm hình ảnh vào bình chọn

Vào Admin.php mở template poll_block

Tìm:
Mã:
<div class="pollContent">
Thêm Vào:
Mã:
<div class="custom_pollImage"></div>

Mở template extra.css và thêm
Mã:
.custom_pollImage {
background: url("linktoyourimage") no-repeat;
width: 150px;
height: 150px;
position: absolute;
left: -200px;
}

Nếu bạn muốn responsive thì mở EXTRA.css và thêm
Mã:
<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveWideWidth) {
.custom_pollImage {
display: none;
}
}

@media (max-width:@maxResponsiveMediumWidth) {
.custom_pollImage {
display:none;
}
}

@media (max-width:@maxResponsiveNarrowWidth) {
.custom_pollImage {
display:none ;
}
}
</xen:if>

Trong code có đoạn background: url("linktoyourimage") no-repeat; các bạn thay linktoyourimage bằng link ảnh của bạn nha.

Demo:

Untitled.png

Chúc các bạn thành công.


Nguồn: Facebook Cộng Đồng Xenforo Việt Nam​
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Hỗ trợ trực tuyến

Support Quảng cáo
Mr. San (PVS)

Skype chat, instant message

Mr. Tuấn (Blue)

Skype chat, instant message

Mr. Tuấn
0988 488 096
Mr. Trọng
0906 081 284
kinhdoanh@vnxf.vn

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Điện Lạnh Thịnh Phát
Top