Make a 1PX form border

xiaoxiao2021-03-06  114

Friends who have experienced web-creation experience must know: Generally speaking, define the border of the table as

1px

Time, ie

Border = 1

And actually

2px

. And we need the real border in many times.

1px

The table, which will be described below.

First, use nested forms

Use two forms to nested, the length of the outer table and the width

2px

And set the alignment property to the horizontal, vertically, then set the background of the outer table to the border color you need, the inner table background is set to the web background, so that we want our desire, instance, as follows:

-------------------------------------------------- ---------------

< Tr>

------------------------------ -----------------------------------

Second, set the bright, dark border color

Table has a bright edge box

(Bordercolorlight)

And dark bids

(bordercolordark)

Two properties, put the table border

(Border)

Set to

1px

Bright edge box

(Bordercolorlight)

Set as a background color, dark border

(bordercolordark)

It is possible to set it to the actual border color you need, and the listed is as follows:

-------------------------------------------------- ---------------

---------------------------------------------------------------------------------------------------------------------------- ---------------------------

Three, use

CSS

Definition (1)

(Recommended Use)

The code is:

Style = "Border-Collapse: Collapse"

Examples are as follows:

-------------------------------------------------- ---------------

------------------------ -----------------------------------------

If you have used

FrontPage XP

You will find that

FrontPage XP

The default settings defined in the form defined are used

CSS

Defined.

Use

CSS

Definition (2)

The code is:

Style = "Border: 1PX Solid # 000000;"

Examples are as follows:

-------------------------------------------------- ---------------

---------------------------------------------------------------------------------------------------------------------------- ---------------------------

One thing to pay attention to: Don't set a table border at this time

(Border)

Bright edge box

(Bordercolorlight)

And dark bids

(bordercolordark)

Attributes, otherwise the expected results will not occur.

转载请注明原文地址:https://www.9cbs.com/read-125427.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.043, SQL: 9