Use a table to adjust the control format.

Source: Internet
Author: User

Use a table to adjust the control format.

I want to write a web by myself, so I am also learning some things about the html language. This reminds me that I was interested in web design in the university era, but I still don't have my own computer at that time, I often go to the Internet cafe to buy a floppy disk to download some images and then use fontpage for some web pages. after buying a computer, I was confused by the legend, and I forgot my webpage design ....


Because I work under ubuntu, what I see under linux is that the webpage design is really rare. I finally chose bluefish.

I want to create a form for adding a device. The result is ugly because the prefix size is different .:

<! DOCTYPE html> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/> 



This input box is not aligned. I am so sad. At this time, my colleagues on the edge said that they can format the table. The code after asking is as follows:

<! DOCTYPE html> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> 

Aha, New Skill get, thanks to Tong Yu for your support ~~

I also learned how to use css to control the table format.

<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>



How to adjust the size of the html table control in aspnet

<Table style = "width: 100px; height: 200px;>
Or
<Style>
. Tb {width: 100px; height: 200px ;}
</Style>
<Table class = "tb">

To dynamically adjust the size, write JS:
<Table id = "tb">

<Script>
Function test (){
Document. getElementById ("tb"). style. width = "100px ";
Document. getElementById ("tb"). style. height = "200px ";
}
</Script>

Why do I show only tables after I drag the table control? ### extra points are solved.

This is the default content that requires adding rows or editing Chinese Characters
<Asp: Table ID = "Table1" runat = "server">
<Asp: TableFooterRow> <asp: tablecells> 1111111111111 </asp: TableCell> </asp: TableFooterRow>
</Asp: Table>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.