The layout problem of irregular picture walls encountered in the project is analyzed as follows: 1.img display: block; solve the 3px img tag bug 2. Set the height and width of img. Otherwise, the image below will appear. If the image above is loaded first, the image will be pushed down when it is loaded again. 3. Parent div position: relative; allows the image price to be relatively and absolutely positioned 4. Child span position: absolute; right: 5px; bottom: 5px; Let the price be absolutely positioned in the parent div 5. To achieve the effect, put the image div into a 3-column div The effect is as follows: Copy code The code is as follows:<div id=”main”></p> <p> <div class=”g1”></p> <p> <div class=”item”></p> <p> <img src=”” width=”” height=””/></p> <p> <span>Price</span></p> <p> </div></p> <p> …..</p> <p> </div></p> <p> <div class=”g2”></p> <p> </div></p> <p> <div class=”g3”></p> <p> </div></p> <p></div> |
<<: Implementing timed page refresh or redirect based on meta
>>: DHCP Configuration Tutorial in CentOS7 Environment
During my internship in my senior year, I encount...
background During development, we may need some s...
This article mainly introduces the analysis of th...
1. Spread Operator The spread operator is three d...
Table of contents Query Background 1. Like query ...
Custom Image FAQ How to view the data disk? You c...
1. Installation environment Here is also a record...
Because what I wrote before was not detailed enou...
Table of contents 1. Particle Effects 2. Load the...
Some time ago, the project needed to develop the ...
Table of contents Preface application Filters Dra...
Preface Bootstrap, the most popular front-end dev...
Table of contents Is real-time update required? M...
The specific code is as follows: /*Scroll bar wid...
Preface Before we begin, we should briefly unders...