Basic html knowledge 2 (ordered unordered list, table), basic knowledge
Abstract: php basic knowledge 2 key points: ordered unordered list;
Content container
1, Paragraph label
Note:Execute a line feed before and after, and empty a line.
2, Ordered listOl (ordered list)And unordered listUl (unordered list)
Format:
Note:Both are automatically wrapped by default, and the subsequent content is automati
Tables are a very important feature of HTML that allows you to design diverse tables using a variety of properties. Using a table can make your page have a lot of unexpected effect, make the page more neat and beautiful.
Common table TagsRelated properties:· ALIGN Adjustment· bgcolor background color· BORDER border· He
>HTML>2>tableDOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">HTMLxmlns= "http://www.w3.org/1999/xhtml">Head>Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />title>Untitled Documenttitle>Head>Body> border the thickness of the border - TR is line, TD is Column - Tab
1 DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 HTMLxmlns= "http://www.w3.org/1999/xhtml">3 4 Table Labels 5 Row Labels 6 column Labels 7 Align:left, center, right8 border: Edge width9 widthTen Height One cellspacing A cellpadding - - Defining Headings the - - - Align + valign - Put in the internal use of the
The HTML table uses the table label. The table tag contains a tr(table row) sub-label, and thetr also contains th(table head) and TD(table Data) sub-tags such as nested structuresCode
, bottom? Yes, just use the Valign=top attribute to align objects above the table.
With Valign=middle you can make objects in a table vertical (preset), Valign=bottom can h make the objects in the table lower.
"Table background, color setting"
So can the table set the b
HTMLReference Series(4)-Table labels
Time: 2006.5.18 Author: Anytao
2006 indicate the source of Anytao.com.
Table is the most important layout element in web design. Therefore, it is very important to grasp the table during the design process. Here Anytao summarizes the commonly used table labels as follows:
Width width Border Border cellpadding The spacing between the contents and the cell cellspacing align alignment between cellsbgcolor background color Backgrou nd background plot cheat Align horizontal alignment of content valign vertical alignment of content height row height bgcolor background color background background image Align horizontal alignment of cell contents valign the vertical alignment of cell contents width cell height of cellbgcolor
The table class provides multiple functions that allow you to automatically generate HTML tables from arrays or database results.
Initialization class
Like other codeigniter classes, use the $ this-> load-> library function in the Controller to initialize the table class:
$this->load->library('table');
Once loaded, y
HTML Definition and usageA simple HTML table consists of a TABLE element and one or more tr, TH, or TD elements.The TR element defines the table row, the th element defines the header, and the TD element defines the table cell.Mor
Copy Code code as follows:
Class Xtable
{
Private $tit, $arr, $fons, $sextra;
Public Function __construct ()
{
$this->tit=array (); Strings with titles for row
$this->arr=array (); Data to show on cells
$this->fons=array ("#EEEEEE", "#CCEEEE"); background colors for odd and even rows
$this->sextra= ""; Extra HTML code for table tag
}
Public function extra ($s)//Add some
--table elements in HTML [reprint]
A,
The parameter value of the 1,border property is a number that represents the pixel count of the table's border width. It can also be used without parameter values, only to indicate that the table has a border. For example,
The 2,width and Height properties are useful for specifying the size of the
before you talk about structured markup for a Web page, look at a few pictures first. Html structure of the table The so-called structure, as shown in the first image above, is to divide our table into three types: table header, body, footer. Thus, when we modify the part of the body of the
In fact, the quick look-up table is to help us gather the most commonly used information in our daily life and make it easier to use, so that we can work more efficiently. With them, it frees your brain to spend extra time remembering their troubles-you just need to open the table and immediately find the information you want.
In this article, you can see the most useful
Ec (2); convert each line of an html table into an array in csv format lt ;? Functionget_tr_array ($ table) {php tutorial source code $ tablepreg_replace ( quot; lt; td [^ gt;] *? Gt; si quot;, quot;, $ table); $ tablestr_replace ( quot; lt; td gt; script ec (2 ); script
// Convert each line of the
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.