There is an interview question that requires: a three-row and three-column layout, where the second column of the first row and the second column of the second row are merged, and the second column of the third row and the third column are merged. Nested tables are not allowed. ![]() Copy code The code is as follows:<!DOCTYPE HTML > <html lang="ch-CN"> <head> <meta charset="utf-8"> <title> </title> <style> html,body{padding:10px;margin: 0px;width:100%;height:100%;overflow: hidden;} td{width:100px; height:100px;text-align:center; font-family:arial; border:1px solid #aaa; vertical-align:center;} </style> </head> <body> <table border="1" style='border:1px solid #aaa' cellspacing="0" cellpadding="10"> <tr> <td>1</td> <td rowspan='2'>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> </tr> <tr> <td>6</td> <td colspan="2">7</td> </tr> </table> </body> </html> |
<<: CSS code to achieve background gradient and automatic full screen
>>: JavaScript operation elements teach you how to change the page content style
Let me show you the effect picture first. Persona...
Table of contents Preface Dockerfile What is a Do...
Rendering After looking up relevant information o...
This article uses an example to describe how to i...
This article introduces 5 ways to solve the 1px b...
The command format for mysql login is: mysql -h [...
remember: IDE disk: the first disk is hda, the se...
First, let's look at an example of memory rel...
Linux task management - background running and te...
1. Command Introduction The tac (reverse order of...
DOMContentLoaded Event Literally, it fires after ...
Preface As a DBA, you will often encounter some M...
1. Create the MySQL database nacos_config 2. Sele...
In daily work, we sometimes run slow queries to r...
!DOCTYPE Specifies the Document Type Definition (...