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
Table of contents 1. Download MySQL 2. Install My...
grammar Here is the generic SQL syntax for INSERT...
Carousel animation can improve the appearance and...
1. Tcl script file circle.tcl code comments #Set ...
Preface "High Performance MySQL" mentio...
1. Use the speed control function to control the ...
Use examples to familiarize yourself with the mean...
Tetris is a very classic little game, and I also ...
Table of contents 1.Vue.js features: 2.Observer.j...
One purpose Select a local folder on the Html pag...
Step 1: Use Notepad to open the "my.ini"...
A major feature of the WeChat 8.0 update is the s...
MySQL 5.7.17 installation and configuration metho...
Table of contents # Post-data preparation # SQL q...
Preface Some people have asked me some MySQL note...