Web page Production Learning: Page Control FAQ and Solutions

Source: Internet
Author: User
Tags add object border color end html tags insert integer window
Solution | control | Web Page | problem | page

1, in a fixed-width table, if the total length of the entered English characters exceeds the width of the table, the table will be large, Chinese will not.

2, the form of the branch download

Add <tbody > at the required branch download to speed up the download of the table.

Like what:
<table >
<tbody >
<tr >
<TD >flsdjfsdjfkdsjf</td >
</tr >
<tr >
<TD >skdjfsdjfksd</td >
</tr >
</tbody >

<tbody >
<tr >
<TD >flsdjfsdjfkdsjf</td >
</tr >
<tr >
<TD>SKDJFSDJFKSD</TD >
</tr >
</tbody >
</table >

3, in the Web page to make a vertical line there are several ways? What's the best kind?

First: <table cellpadding=0 cellspacing=1 bgcolor= ' table border color ' >
<TR bgcolor= ' table background color ' >
Each attribute in the above code cannot be forgotten, otherwise it is invalid.

The second type: CSS style control
<table style= "border-collapse:collapse;border-color: Table border Color" >

Third: Use background pictures, not recommended.

4. Why is there a blank space around the page?

In your <body> add leftmargin= "0" topmargin= "0", in order to adapt to Netscape browser, it is best to add
marginheight= "0" marginwidth= "0"

5, how to remove the browser "scroll bar"?

<body scroll=no>

Remove horizontal scroll bar: <body style= "overflow-x: Hidden" >

Remove the vertical scroll bar: <body style= "overflow-y: Hidden" >

6, how to achieve "set as the home page", "Add to Favorites"?
Set as Home page:
<a href= "#" > Set homepage </a>

Add to Favorites:
<a href= "Javascript:window.external.AddFavorite" (' http://www.webjx.com ', '
Professional Web Teaching site ') ' > Add to Favorites </a>


7, in the Dreamweaver How to add a continuous space?
1, insert the Chinese full corner space (in the Intelligent ABC mode, press shift+space key switch)
2, using the mark, 1 marks to represent a space;
3. Use the Insert non-breaking space in the OBEJCT panel. This is the equivalent of inserting a tag.
4.shift + Ctrl + Spaces

8. How to make a thin line form?
Table Thin Line Border practice

Method 1: Set the table's cellspacing to 1,cellpadding and border to 0, filling the table's background color and the cell's back color, respectively. Examples are as follows:
<table width= "border=" 0 "cellspacing=" 1 "cellpadding=" 0 "bgcolor=" #666666
">
<tr bgcolor= "#FFFFFF" >
<td> </td>
</tr>
<tr bgcolor= "#FFFFFF" >
<td> </td>
</tr>
</table>

Method 2: The cellspacing, cellpadding, Border are set to 1, respectively, set the table border color and internal cell border color, note that the inner cell border color and Web page background color or table background color is the same, so that the internal border appears to be integrated with the background. Examples are as follows:
<table width= "border=" 1 "cellspacing=" 1 "cellpadding=" 1 "bordercolor=" #66
6666 ">
<tr bordercolor= "#FFFFFF" >
<td> </td>
</tr>
<tr bordercolor= "#FFFFFF" >
<td> </td>
</tr>
</table>

Method 3: Define a table with a CSS border width of 1 pixels. First set CSS class Table1 {border-top:0px; border-right:0px border-bottom:0px border-left:0px}, then add class= to the <table> tag Table1 ".

Method 4: Make a table and other large picture as the background, especially if you want to make the table edge chamfer.

9, how to let the 800*600 resolution of the Web page generated under the 1024*768 center display?
A: Place the contents of the page in a large table with a width of 778, and set the large table to be centered horizontally. The width is set to 778 to 800*600 the window does not appear horizontal scrolling

, you can also make adjustments as needed. If you want to speed up the display of key content, you can also open the content in several vertical linked to the large table ~ ~ In addition to the use of the table

, you can also surround the parts you want to center with <div align=center> and </div> tags.

10, the realization of background music method
A: About the realization of background music, I believe you already know. Here are some more detailed parameters that may be useful to you. First of all, prepare a MIDI music, the background music used

HTML tags are: <embed src= "001.mid" >

This tag can be used anywhere between <BODY> and </BODY> depending on your needs. A pattern like a media player will appear in the position where this tag is placed, and you can control the playback of the music or pause for example, I write this line below:

<embed src= "001.mid" width=145 height=60>

A control panel will appear to let you play the music, if I want to use music as a background music, that is, do not display the control panels. And it will play as soon as you enter the screen, and then repeat. Write this:

<embed src= "001.mid" Hidden=true autostart=true loop=true>

About <EMBED> There are a lot of other properties, I one by one explain to you: src= "file name and path" to set the path of the MIDI file.

Autostart= "True/false" will play music automatically after the music file is passed. True is to, false is not, default is not.

loop= "True/false/integer" setting is automatically repeated, loop=2 says repeat two times, to repeat available loop= "TRUE" indefinitely.

Starttiime= "minutes: Seconds" To set the time for the song to start playing, for example, I want to start from the 30 seconds of this song, so write Starttiime= "00:30" endtime= "points

: Seconds "When the song ends, we don't have to set the start and end of the song, it will automatically play from the beginning to the end."

Volumee= "0-100"
Set the music volume size, the value must be between 0 to 100, if not set, is the user system itself set the volume size.

The width and high= "integer" Sets the control panel widths and heights.

Align= "Top/bottom/center/baseline/left/right/texttop/middle/absmiddle/absbottom"
Sets the alignment of the control panel and side text to the same properties that are used for (insert graphics)
Of

Controls= "Console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"
Set the appearance of the control Panel, the preset is console.

Console generally normal panel
Smallconsole smaller panel
PlayButton Show only play buttons
Pausebutton Only Show pause button
Stopbutton Show Stop button only
Volumelever only displays the volume adjustment button

Hidden= "TRUE"
If you write this attribute, you will completely hide the control panel, but you cannot set the width and height of the control Panel.

<EMBED> can be anywhere between <BODY> and </BODY>. Remember: In the position where this tag will appear a control panel pattern, you can depending on your needs, put it in the appropriate position, you can also use Hidden=true to hide the panel, with Autostart=true when the background music used.


11. How to add the forward and Rewind buttons in the Web page?

A: <a href= "Javascript:history.back ()" > Back </a>

<a href= "Javascript:history.go ()" > Forward </a>

If you want to make a button, write the History.back () or history.go () to the <input> onclick action.

12. How to open and close a pop-up window in a Web page?
A: Open pop-up windows can be set in the Behavior/open browser window in the DW.

To close a window:
<a href=javascript:window.close () > Close window </a>
Note that only windows that are open with JavaScript can be closed directly with window.close (), or a dialog box that confirms whether you really want to close.

To close a window without ejecting the confirmation dialog box:
<object id=closes type= "Application/x-oleobject" classid= "clsid:adb880a6-d8ff-"
11cf-9377-00aa003b7a11 ">
<param name= "Command" value= "Close" ></object>
<body>
<a href= "#" > Close window without prompting </a>
</body>


13, how to enter the superscript in the Web page?
A: Superscript:<sup>......</sup>
Subscript:<sub>......</sub>

For example: Cm<sup>2</sup>, 2 of which will be shown above the standard form

14, how to achieve the first line of automatic indentation?

CSS style sheet with instance code as follows:
<style type= "Css/text" >
body,td,a {font-size:9pt}
p {text-indent:18pt}
</style>

15. How do I hide the link information that appears in the status bar?

----You know, when you point to a link, the link information appears in the browser status bar, if you need to hide information, you can set the following:

< a href= "http://www.webjx.com" >test</A >



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.