Home Web Front-end HTML Tutorial Use tables to adjust the format of form controls to make them look better_HTML/Xhtml_Web page production

Use tables to adjust the format of form controls to make them look better_HTML/Xhtml_Web page production

May 16, 2016 pm 04:37 PM
table Format sheet

Because I want to write a web by myself, I am also learning some things about the HTML language. It reminds me that I was interested in web design when I was in college. Unfortunately, I didn’t have my own computer at that time, so I often went to Internet cafes to buy floppy disks and download some. pictures, and then used fontpage to make some web pages. Later I bought a computer and was fascinated by "Legend" all the time. I also forgot about web design....

Because I work under Ubuntu , and there are really few WYSIWYG web designs under Linux. In the end, I chose bluefish.

I wanted to make a form for adding devices, but the result was ugly because the prefix sizes were different. As shown in the figure:

Copy code
The code is as follows:

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<body>
Username:< input type="text" name="username"><br/>
Password:<input type="password" name="password">
</body>
</html>



This input box is not aligned. I feel sad. At this time, my colleague said that I can use a table to format it. , the code after consultation is as follows:

Copy the code
The code is as follows:

<! DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<body>
<table>
<tr>
<td>Username:</td>
<td><input type="text" name="username">&lt ;br/></td>
</tr>
<tr>
<td>Password:</td>
<td><input type ="password" name="password"></td>
</tr>
</table>
</body>
</html>



Aha, new skill got, thank you classmate Tong Jun for your strong support~~

He also taught me how to use css to control the format of the table

Copy code
The code is as follows:

<style type="text/css" >
table{border-top:#000 solid 1px; border-left:#000 solid 1px;}
td{ border-bottom:#000 solid 1px; border-right:#000 solid 1px;}
</style>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Steps to adjust the format of pictures inserted in PPT tables Steps to adjust the format of pictures inserted in PPT tables Mar 26, 2024 pm 04:16 PM

Steps to adjust the format of pictures inserted in PPT tables

How to make a table for sales forecast How to make a table for sales forecast Mar 20, 2024 pm 03:06 PM

How to make a table for sales forecast

How to use JavaScript to implement drag-and-drop adjustment of table column width? How to use JavaScript to implement drag-and-drop adjustment of table column width? Oct 21, 2023 am 08:14 AM

How to use JavaScript to implement drag-and-drop adjustment of table column width?

How to use block quotes in Apple Notes How to use block quotes in Apple Notes Oct 12, 2023 pm 11:49 PM

How to use block quotes in Apple Notes

How to set WPS value to automatically change color according to conditions_Steps to set WPS table value to automatically change color according to condition How to set WPS value to automatically change color according to conditions_Steps to set WPS table value to automatically change color according to condition Mar 27, 2024 pm 07:30 PM

How to set WPS value to automatically change color according to conditions_Steps to set WPS table value to automatically change color according to condition

How to write the qq mailbox format? What is the qq mailbox format? How to write the qq mailbox format? What is the qq mailbox format? Feb 22, 2024 pm 03:40 PM

How to write the qq mailbox format? What is the qq mailbox format?

How to export and import table data in Vue How to export and import table data in Vue Oct 15, 2023 am 08:30 AM

How to export and import table data in Vue

How to insert automatic numbering or serial numbers into Word tables How to insert automatic numbering or serial numbers into Word tables Mar 20, 2024 am 09:30 AM

How to insert automatic numbering or serial numbers into Word tables

See all articles