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
Preface: Based on a recent medical mobile project...
Table of contents JavaScript Objects 1. Definitio...
Table of contents 1. Background 2. Prerequisites ...
Sometimes some docker containers exit after a per...
1. Download from official website: https://dev.my...
Table of contents 1. Form events 2. Mouse events ...
This article shares the specific code for JavaScr...
Table of contents Server Planning 1. Install syst...
Introduction: This article mainly introduces how ...
background: 1. There is a notification table in t...
Background of the accident: A few days ago, due t...
Table of contents 1. typeof 2. instanceof 3. Diff...
As we all know, without the cd command, we cannot...
This article shares the specific code of the pull...
Preface I have been working on some front-end pro...