


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 PMBecause 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:
<!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:
<! 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">< ;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
<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>

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Steps to adjust the format of pictures inserted in PPT tables

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 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 write the qq mailbox format? What is the qq mailbox format?

How to export and import table data in Vue

How to insert automatic numbering or serial numbers into Word tables
