Home > Backend Development > PHP Tutorial > javascript - How to implement the layout style of Toutiao picture channel?

javascript - How to implement the layout style of Toutiao picture channel?

WBOY
Release: 2016-09-14 09:41:21
Original
1797 people have browsed it

Today’s headline picture channel toutiao.com/news_image

The picture layout style of Toutiao is as follows. I only took two screenshots. After looking at them, they seem to be random styles (3 picture styles, 1 picture style)

How to use PHP to implement this (or how to use PHP to output different styles? When to output three image styles? When to output one image style, or to output randomly [random output usually changes when refreshing the web page])?

javascript - How to implement the layout style of Toutiao picture channel?

Reply content:

Today’s headline picture channel toutiao.com/news_image

The picture layout style of Toutiao is as follows. I only took two screenshots. After looking at them, they seem to be random styles (3 picture styles, 1 picture style)

How to use PHP to implement this (or how to use PHP to output different styles? When to output three image styles? When to output one image style, or to output randomly [random output usually changes when refreshing the web page])?

javascript - How to implement the layout style of Toutiao picture channel?

The pictures are divided into three styles, .small .middle .large
Each style has fixed width and height
Three pictures, .middle style floats left, .small style two floats right
The layout is like this

For such an irregular picture arrangement, if there is only one link, just take a screenshot and put it up. If there are links in each block, just draw hot spots. Anyway, it is irregular

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template