Make a blank space for Taobao: When you shrink the browser page, the content area does not shrink, but the blank space becomes smaller. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> *{ margin: 0; padding: 0; } .wrapper{ height: 30px; background-color: gray; } .content{ width: 1200px; height: 30px; background-color: #0f0; margin: 0 auto;/* 0 for top and bottom, adaptive for left and right*/ } </style> </head> <body> <div class="wrapper"><!-- Background area --> <div class="content"></div><!-- Content area--> </div> </body> </html> In this way, when you zoom, the gray part outside is zoomed, and the green part is always in the center. This is how the text inside is written. <div> <ul style="float: left;"></ul> <ul style="float: right;"></ul> </div> This is the end of this article about how to achieve Taobao white space with CSS3. For more relevant CSS3 Taobao white space content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: Analysis of examples of using anti-shake and throttling in Vue components
>>: MySQL configuration master-slave server (one master and multiple slaves)
Table of contents Angular accomplish Calling orde...
Download the latest version of MySQL for Ubuntu L...
1. Review The Buffer Pool will be initialized aft...
Delayed loading (lazy loading) and preloading are...
In this article, we will look at how to develop a...
MySQL 8.0.3 is about to be released. Let’s take a...
This article shares the specific code of JavaScri...
Background - Online Alert An online server issued...
Table of contents Separation effect Command line ...
Today I suddenly thought of reviewing the producti...
Table of contents Vue2 Writing Vue3 plugin versio...
Cause of failure Today, when I was writing a caro...
Recently, I need to package the project for membe...
1.MySQL UPDATE JOIN syntax In MySQL, you can use ...
Ubuntu 18.04 installs mysql 5.7 for your referenc...