1. Solve the problem of the table close to the top left
Method One: Ctrl+j, pop-up page Properties, will left, top, Margin Width, Margin Height all
Set to 0.
Method Two: Add the following code to your <body> topmargin= "0" leftmargin= "0"
Method Three: Method two only applies to IE, if it is also suitable for Netscape to add the following code
<body topmargin= "0" leftmargin= "0" marginheight= "0" marginwidth= "0" >
2. In the DW, set the diagram to the transparent Alpha setting example:
<title>css</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type=text/css>
. Pic{filter:alpha (OPACITY=50)}
</style>
<body bgcolor= "#FFFF00" text= "#000000" >
</body>
3. Set the dotted line of the table
Method One: Make a 1x2 diagram. Half black and half white, then use the form to make line.
Method Two: In the CSS inside set
In the CSS panel, new style, select "Redefine HTML Tag", and then "table" in the dropdown menu.
In the next panel, choose border in the category.
In the border, the Top,left,right,bottom are set to 1px, and the color is set to the color of the border you want in the future.
Style Larry Select Dashed
Everything OK. It's just that all the tables are framed with dotted lines.
Method Three: Set in HTML (if you just want a table border to be dotted)
The color is 16-bit code and you can set it yourself. Method two or three, can only be used in IE, to Netscape is not useful, unless you use a good bottom figure fill. But the suggestion uses the picture to be IE5. 5 only supports this effect
4. About table line spacing and segment spacing
If you are in a table, you can use the style sheet to adjust:
. td{line-height:120%}
Shift+enter Line Change
5. How to keep the background fixed position unchanged
Press Ctrl+shift+e in Draemweaver to create a new CSS style (new), in the Background tab, you can set various options for the background:
Background: Background color
Background Image: Choose your background image
Reapeat: Background image is repeated, where no-repeat is not duplicated, repeat is duplicated, repeat-x and repeat-y are duplicates in the X and Y directions respectively.
Attachment: Background map position, fix for background image position fixed, scroll for background map with page scrolling
Horizontal: For the fixed background map in the horizontal direction of the position, you can choose to center, left, right or set their distance from the left.
Vertical: For the fixed background map in the vertical direction of the position, you can choose to center, the top, at the bottom or set their own distance from the top.
Note that the option to take * can be seen in the browser.
Set, select <body> Apply the CSS style to the Dreamweaver left corner.
------------------------------------------------
Not just <body> tags, there are elements in the page can be selected there, you can easily select the Application object.
For all onload trigger events, you can also choose <body> add behavior, such as drag layer or open the page after the pop-up window and so on
-----------------------
The Background-attachment property controls whether the background image scrolls along with the content, taking the value of scroll and fixed. The default value is scroll (scrolling), and fixed to static.
Add the following code between <style>
Body{background-attachment:fixed}
</style>
--------------------------------------------------------------------------------
When you insert a jump menu with the "Open URLs in" item, select the name of the window you think of here.
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