Dreamweaver Tips 50 questions

xiaoxiao2021-03-06  17

Dreamweaver Tips 50 Ask Dreamweaver's web design tool, in addition to its powerful dynamic effect, convenient and concise operation interface is more unique, and we will take the latest version Dreamweaver4 as an example, and ask questions Under the introduction of the system, some problems and skills that are often encountered during the design process.

Note: For convenience, the following we reduce Dreamweaver to DW.

1> How to enter a space in DW?

The problem of entering spaces, in DW seems to have become an older talk, we may have seen N times in many books or articles that describe DW.

The restrictions on the space input in DW are for the "half" text state, so by adjusting the input method to the full-corner mode, it can be avoided, the method is: Open the Chinese input method (as an example of manually intelligent ABC), press Shift SPACE switches to the full-angle state, there should be no problem now.

In addition, you can also reach the purpose of entry spaces through many "work" methods, such as common use:

Add HTML code "" directly in the source code ""; after entering a certain length of text object, then adjust the color of the text is the same as the current background color, but not, the latter may be displayed in some browsers. have some problem. (Oh, the one used in the time is to let Wang Chenzhen show it!)

2> How do I add a custom small icon before the browser address bar?

Do you remember that sometimes when you browse the homepage of the NetEase website, you will show a small icon for "easy" before www.163.com. By default, this icon is a specified image of an IE browser. Figure:

In fact, this is not a high-tech, but it has added a specific file to the website directory.

At this time, we need to make an icon file in advance, the size is 16 * 16 pixels. The file extension is ICO and then uploaded to the corresponding directory. Add the following code between the HTML source file " ":

The "Shortcut icon" is the name of the icon. Of course, if the user uses IE5 or above to browse, it is more simple, simply uploading the picture to the root directory, you can automatically identify!

3> Why, I originally designed a good web page, which will become ugly when the browser window minimizes?

This should be a question that is worth paying attention to, that is, when browsing the content in full-screen state, there is no problem. When we use the window's minimization command or manual adjustment window, the problem will slowly appear. The content of the web page will use the current window as the display range, in turn. For example, it is exactly the same as "automatic wrap" and "no wrap" in the notepad.

To solve this problem, we must start from the layout of the web page, in general, the positioning of the webpage content is achieved by the table. Therefore, the problem of "problem" is also on the table.

Please see the properties panel of the following table display:

You may have noticed that two different types, percentages, and pixels are available on the high and wide settings of the table. The percentage of use will produce the problem mentioned earlier, and all of them can be corrected in the actual size of the Pixels unit.

4> How to change the web page display, the top prompt information?

When browsing the web, the top prompt information often represents the key to web content, helping visitors to understand the webpage content in advance. Before DW4, it is not functionally provided directly, and we tend to be done by applying the "Title" property in the source code. It is more simple to enter DW4. Type the desired text message directly in the "Title" input box of the editing window.

5> How can you add a specified color border to the picture?

For pictures without borders, insert them directly into the web page, it is quite worse on the display. I remember that I want to add a satisfactory border to the picture in Microsoft's FP or quite troublesome.

However, it is much easier in DW, because there is a "border" attribute here, you can set the width of the border directly. Figure:

The width is set, you will ask, color? There is no color selection on the panel! Oh, in fact, there is a skill problem. Use the mouse to select a picture object, be careful not to click check, but drag the selection. It is possible like setting the text color.

6> How to add pictures and link text prompt information?

When we browse the web, when the mouse stays on the image object or link, a prompt message box will appear on the right of the mouse. A note instructions on the target. In some cases, its role is very important.

Let's take a look at the addition of the picture prompt information, select the picture object, you will find a "alt" input box in the property panel. By default, this input box is blank. The content you need to enter here is OK.

Then the production of the link prompt is not so simple. Because this feature is not provided in DW, we need to be implemented by adding HTML code.

Add the "Title" property in . Title = prompt content.

7> How do I download my ZIP or other type of document?

In a lot of primary web makers, it seems that it is very "mysterious" through the mouse click to complete the download is a very "mysterious" thing. In practice, in DW, in DW, the format file (HTM, HTML, "in DW is not being identified by the browser (HTM, HTML, ASP, PHP.PERL, SHTML, etc.) As a link target, the default operation is downloaded.

At this time, you only need to write the file name you want to download by the viewer, then make a link to the target file. Note that the directory must not make mistakes.

8> How can I guarantee that the word in the web page does not change with the browser font size?

Everyone knows that in the functional settings of the IE browser, there is a function of freely set the content font size of the window, so that due to the habit of different visits, the webpage presenting in front of them is sometimes different.

For example, you may have the same 2 font when you design it. As a result, because the user has a big sum of the browser, there is a problem.

So solution is to enforce the content of the webpage content in a suitable size. That is, it is not allowed to change. This requirement can be achieved by mandatory control over the font through the CSS style sheet.

9> Open the goal link in the form of a new window?

Open in a new window, as the name suggestions, that is, open a browser window without overwriting the current window. You can join "Target = _blank" directly in the connection code

If your HTML is worse, this setting is also available on the DW property panel. When you type in the WWW URL in the LINK input box, the latter Target drop-down box is also activated. Figure

Select the most upstairs "Blank" is ok.

10> How to let the web page to load, like many commercial websites, pop up an advertising window

This is often seen in many large business websites. It can be easily implemented by Behavior behavior in DW.

Since we are loaded, we can treat the entire web content as an event object. Click the "" tab in the lower left corner in the DW editing window, then you can notice that all the web content is already selected. Click the "Behavior" button in the Quick Startboard to enter the behavior panel, as shown:

Select the "Open Browse Window" item, then you can also customize the window style, such as the size, the reservation of the tool button, and more. In addition, there is something that don't forget the corresponding event is "online".

11> There is no "Timelines" in my fast startboard. What should I do?

DW From the upgrade to 4 versions, add several new items in the quick start board, such as Assets, etc. At this time, the Timelins button originally squeezed out.

Of course, if you are eager to use it now, you can still find it through the menu "Windows" - "Timelines". But after all, it is better to put it in the launch board. At this time, we can add it to it by setting!

"Edit" - "preference" enters the window, select "PANELS" in the list of items on the left, as shown

Click the " " button above, select "Timelines" from the drop-down list. At this time, the timeline has been automatically added to the current "show in launcher" list, OK. The changed "Launcher" panel is shown.

At the same time, you can also improve the work efficiency based on your own button options you need to freely choose.

12> Make a web page to automatically refresh once every 5 minutes, how to implement it?

When browsing online, we often encounter some web pages. When there is no response over a period of time, it will automatically refresh once. In addition to the purpose of reminding the visitor, when the new refresh address is not the current URL, the implementation is the function of automatic jump.

Whether it is repeated refresh, or automatically jump. In web design, it is quite practical. Let us introduce their production methods.

Select the "HEAD" section of the DW "Object" panel, pay attention to the "content" of Common by default. Figure

Click the "Refresh" button above, the pop-up window is as follows:

Where "DELAY" is typed in the input box (unit: second), "Action" is refreshed the specified target URL. Because it is now refreshing the current page, direct selection option "refresh this document".

13> How do I define keywords (Keyname)?

When the user uses a web page for the search engine Search suitable content, the keyword plays a role that cannot be ignored. Most search servers will automatically detect a new web page in the network every other period of time and record them by keywords to facilitate user query.

You certainly want your web page to appear in the search engine query back to the list, then the definition of the keyword is especially important.

Also in the "HEAD" panel part, as shown

Click the "Keywords" button and pop-up the definition window as follows:

Entering the keyword defined one by one, pay attention to each keyword is separated by ";", the number is not limited.

14> How to hide some unnecessary labels in the editing window?

When the user inserts too many invisible elements in the web page, the top of the editing window will display a row of corresponding labels to facilitate the user to find them at any time. Although these tags itself do not affect the display effect in the browser, but later, it is often necessary to make the content of the webpage to a certain extent, which hinders the adjustment of the webpage, so how can you remove these stuff? Go to the "preperence" panel, select "Invisibel Elements" in the list, as shown:

That you don't want to display the "right", such as S Cripts, etc.

15> Arrange the display of the "framework" browser display?

We know that there are a lot of browser types, so we often consider the most in designing web pages. "Is this something to display in different browsers?". The framework is an example!

However, avoid this, it is very simple, you only need to add the following content in the source code.

--- This page contains a frame structure, if you don't display properly, download a new browser version or replace the mainstream browser --- </ NOFRAMES> </ body></p> <p>16> How to avoid others in the framework?</p> <p>Some people who have a bad heart, often steal the work of others, such as the web page that carefully produces others in their own frame.</p> <p>So how to avoid your own web content is "stolen"?</p> <p>You only need to add the following code between the <head> </ head> of the web page source code:</p> <p><s cript language = "javas cript"> <! -</p> <p>IF (Self! = TOP) {top.location = self.location;</p> <p>-> </ s cripe></p> <p>17> How to join the comment?</p> <p>Comment content, as the name implies only appears as an explanation, so it will not appear in the web page when browsing. Its role is to make the necessary indication for certain important or complex code to make it easier and fast.</p> <p>Enter the "Invisibel" section of the "Object" panel (ie, invisible elements), select the Insert "Comment" button, the window is as follows:</p> <p>Type the necessary information in "Comment". At this time, if you return to the source code, you will see that these operations added is just a piece of code in the format:</p> <p><! - This is the annotation content that needs to be filled -></p> <p>18> Horizontal line, why can't you set color?</p> <p>In DW, when you insert the horizontal line through the menu "INSERT" - "Horizonal Rule", you will find that there is no setting regarding the horizontal color, because the label <HR> is not supported in the oldest NC (HTML code of the horizontal line " The Color property, so DW does not have the settings about it. Figure</p> <p>It seems that we can only enter the source file directly to change.</p> <p><hr color = "Code of Corresponds Color"></p> <p>19> How to set up the function of the current window?</p> <p>Here we can enter the text "Close Window" used to be marked, and select it with the mouse, type "/" in the "Link" input box, and cut into the source code window, type the event in the link code - οnclick = "JavaS cript: window.close (); return false;".</p> <p>Complete code is: <a href = "/" οnclick = "javas cript: window.close (); return false;> Close window </ a> Of course, you can also change the text" Close window "to other objects For example, pictures, buttons, etc.!</p> <p>20> What is the window that is automatically closed?</p> <p>The above mentioned the function of closing the window, then how is the current automatic shutdown implementation?</p> <p>Add the following code after the source code <body>:</p> <p><s cript language = "javas cript"> <! -</p> <p>SetTimeout ('window.close ();', 10000);</p> <p>-> </ s cripe></p> <p>Where SET TIMEOUT is a function used to set a delay time, here 10,000 to 10 seconds.</p> <p>21> How to change the "shape" of the mouse in the browser?</p> <p>Under normal circumstances, the mouse appears in the "arrow" style in the browser, then can we change it to other style types you like?</p> <p>Changing the mouse shape is implemented by "CSS Style Table" in DW.</p> <p>Menu "Text" - "CSS Style" - "Edit Style Sheet", the edit window of the pop-up style sheet, or click the CSS STYL button in the Quick Startboard, as follows:</p> <p>Click the "New" button, select the default "make customer style", and simultaneously make the style only to the current web document, "this Document Only" in the define below.</p> <p>Select "Extensing" in the left list item of the Style Definition window, and set the right right</p> <p>In the "Cursor" (mouse), pull down to select the appropriate shape, then return, press F12 to observe the effect in the browser, if not satisfactorily, can also modify the style.</p> <p>22> How to remove the underscore below the link text?</p> <p>After we complete the link production, the link text content is often automatically added to the next underscore, which is used to indicate that the content contains a hyperlink. When a link in a web page is more, it seems that some messy feelings, in fact, we can easily remove it.</p> <p>Also enter the "Edit Style Sheet" window, click "New" to establish a new style, as follows</p> <p>In the type (type) here, you need to select "Redefine HTML Tag", while selecting "A" representing a hyperlink in the specific tag tag, click OK.</p> <p>Edit this style, select "Type" in the left list, as follows</p> <p>Check the "None" checkbox in "Decoration", then the link text in all web pages is cleared.</p> <p>23> How to make the mouse "hover" above the link text?</p> <p>When the website is accessing the website, the most common effect we encounter is "mouse hover response". The so-called "mouse hover response" is acting on the link text, including changing color, modifying effect (underscore, intermediate Line) and many other options.</p> <p>Since this effect has played a strong emphasis on the content of the target, whether it is a personal website or some large commercial websites (such as Sina, Sohu, NetEase, etc.) have applications.</p> <p>In the last question, you have known the way to remove the chain next scribe, and details are not described here. The following problem will be how to add a mouse response event. Also enter the "Edit Style Sheet" window, click "New" to establish a new style, different is the last Type type, select the last one - "Use css selector", "Selector" in the "Selector" menu Select "A: Hover" as follows</p> <p>OK, enter the editing style window, set the text color in the "Type" item to "red", of course, you can also add the underlined effect when the mouse is hover.</p> <p>24> How to make the web page background picture does not follow the content scroll?</p> <p>The background picture is something that many web designers often add, when the web content exceeds a screen, pull the scroll bar background picture to scroll with the content relative to still, then can the background do not follow the scroll? Of course, you can enter the "Edit Style Sheet" window, click "New" to establish a new style, select "Redefine HTML TAG" in Type, and the TAG selection "body" is selected, and "Background" is selected in the list. as follows</p> <p>Set the "attachment" (attachment) to "fixed". Scroll represents the scroll display of the default use.</p> <p>25> Background music, you must know, how to add it?</p> <p>In Microsoft's Web Tool -frontPage, the DW is clearly not made in the background music, so it is only possible to manually add it in the source code.</p> <p>Before use, remind everyone that using the background music must pay attention to the size of the web file, and cannot be exhausted.</p> <p>code show as below:</p> <p><Embed SRC = "Music.mid" Autostart = "true" loop = "2" width = "80" height = "30"></p> <p>Where SRC specifies the location of the music file, Autostart is uploaded by the music file, True indicates the automatic start play, FALSE does not play (default).</p> <p>26> How to use the horizontal line to make a thin line with a width of 1?</p> <p>Please click here to see the implementation method (the editor increases)</p> <p>27> How do I automatically join the date after changes?</p> <p>Just add the following code between the source file <body> </ body>.</p> <p><s cript language = "javas cript"> <! -</p> <p>Document.write ("Last Updated:" Document.lastModified;</p> <p>-> </ s cripe></p> <p>The display style in the browser is: "Last Updated: 2001/8/19"</p> <p>28> How to control pop up POPUP information?</p> <p>Sometimes, when we click on the link, there will be some key instructions, which is the pop-up information. For example, when a link has not completed the production page of the target content page, you can apply POPUP information to explain.</p> <p>In appropriate positions in the web page, select the link in the properties panel. Under the premise of remained the status, click the "Behavior" button in the Quick Startboard, such as:</p> <p>Click on the " " number on the left, select "Popun Message" from the list, enter the information you want to prompt in the subsequent window, as shown</p> <p>The mouse event (Events) set (onClick) is set. The preview effect in the browser is as follows</p> <p>29> Hide URL address information for the status bar in the browser? Browse the web, when the mouse stays above the link, the link destination address is automatically displayed in the status bar below, considering security issues, sometimes we need to reset it to "zero", which is set to blank.</p> <p>Now you only need to do some hands and feet in the link code, as follows</p> <p><a href = "http://www.pconline.com.cn/pcedu" ;;; OnMouseOver = "Return True"> Pacific Network College </ A></p> <p>30> How to change the prompt text in the status bar?</p> <p>By default, when the web is loaded, information such as the address of the page will be displayed in the status bar. Do you want to make it more charming?</p> <p>In the DW "Behavior" behavior board, click " " to select "Text of Status Bar" option under "Set Text Set", as shown</p> <p>Enter Message information similar to "Welcome to this website - NMS message" in the "SET TEXT OF STATUS BAR" window.</p> <p>31> How to build an email form handling method?</p> <p>The form should be an indispensable element in the web interaction function, the function of the form is interactive, so the form of form is often related to the use of the network advanced programming language, you may say, wow! I won't be programmed! It doesn't matter, in fact, for some simple form content, you can also be implemented by email.</p> <p>First look at the following code:</p> <p><Form name = "Content" method = "post" action = "Handle"> </ form></p> <p>The above is a typical form of HTML source code, where Method determines how to adopt, including POST and GET. Action is also the handler of our above, generally can be implemented by ASP / PHP / CGI.</p> <p>So how do you implement email? Action = mailto:</p> <p>Bjbenben@sohu.com, this will pop up a prompt window when you click the Submit button, as follows:</p> <p>Click the "OK" form to send it to the specified mailbox.</p> <p>32> How to make a normative email link?</p> <p>The so-called "email link" is when we click on it, the browser automatically invokes the default mail client program to send an email.</p> <p>Enter "There is a problem mail me" word, mouse tract, switch to the property panel, type the following command in the Link input box:</p> <p>Mailto:</p> <p>BJBENBEN@sohu.com? Subject = User Correspondence & BC = Other Email Address & BCC = Other email addresses. Figure:</p> <p>Among them, Mailto is the protocol of the mail link, and Subject is the title of the message, the BC is the email address at the same time, and the BCC represents the Dark delivery.</p> <p>33> How to make "empty links"?</p> <p>Empty link is that there is no link to the link object. In the empty link, the target URL is represented by "#". That is to say, when the link is made, as long as the # tag is entered in the LINK input box of the property board, it is empty link.</p> <p>The emergence of empty links involves many factors, such as some pages that do not have regularly completed, and use it in order to keep the page display (the link style is different from the ordinary text style).</p> <p>34> When you click on an empty link, the page is often reset to the top of the page, how to deal with? In the browser, when we click on the empty link, it will automatically reset the current page to the first end, which affects the normal reading of the user, and we certainly hope that it can keep it.</p> <p>At this time, you can use the code "JavaS cript: void (null) instead of the original" # "tag, look back, this problem has been solved.</p> <p>35> How to customize the link to jump in the page?</p> <p>If you often subscribe to some free electronic magazines online, you must be unfamiliar with this "label link". Through a similar directory list, it is convenient to jump to any part of the page, which is undoubtedly specifically "Ultra Long Content" web design.</p> <p>First determine the location of the link pointing, that is, the position of the screen is hopped. Go to the "Invisibles" section of the "Object" panel, select the target text, click the "Insert Named Anchor" button, the window is as follows</p> <p>Type tag names, OK in "Anchor Name", which will automatically appear on the text, which will automatically open ordinary text content, pay attention to it will not appear in your browser.</p> <p>Then you can make a link, entry "#nchor name" in the LINK input box of the attribute board. Of course, if you want to point to a certain location in another page, it is possible to put this small tail.</p> <p>36> At the same time, make a lot of links on a picture, what should I do?</p> <p>This problem is also the "image hotspot", of course, there is another name called "Image Hot Area" in DW.</p> <p>Select the picture, at this time, there is a "map" toolbar at the bottom left of the properties panel, and the right side is the button used to circle different regions, as shown</p> <p>Take the rectangle tool as an example. After selecting, the mouse will be displayed on the image, and the representative can be dragged left and right, and then as shown in the figure:</p> <p>You can complete the link production of multiple hotspots. Note that each region cannot overlap.</p> <p>37> How to make flip images that can respond to mouse events?</p> <p>In many web pages, we often see some columns, when the mouse slides out, it can become another look. In fact, many of them are achieved by two different pictures, that is, the so-called "flip picture" effect.</p> <p>Of course, first you have to prepare two size exact pictures in advance to ensure that there is no visual discomfort when flip, click "Rollover Image" on the "Object" panel.</p> <p>The "Turning Image Settings" window is pop, as follows:</p> <p>Click the "Browse" button to determine the address of "Original Image" and "ROLLOVER Image", pay attention to the "preload rollover image" checkbox below, otherwise you will generate a certain download delay in the instant of the mouse. influential impact.</p> <p>38> How to make a picture of "Flying Dance"?</p> <p>In many large-scale commercial sites, you often see a lot of advertisements that come back and float, click to link to the specified address, which is implemented by Timelines in DW.</p> <p>First insert the target picture in the web page, select it, click the "Timelins" button in the Quick Startboard to enter the Timeline window, as shown:</p> <p>At the position of the timeline 1FRAME, select "Add Object". At this time, a decan color strip appears (default 1-15Frame), stop the lens at 15Frame, and move the page in the page position. Now a simple motion animation has been completed, you can adjust the track of the path by adding KeyFrame in the middle. Click the right arrow button above the preview.</p> <p>39> How to make pictures of "Static Suspend" in the page?</p> <p>The so-called "static suspension" is that the picture always tries to stay in a certain position in the web page, so it is visually a feeling of "walking", like suspended.</p> <p>The implementation of this effect is done through JavaS cripe, which generally requires certain programming capabilities. Fortunately, the DW provides a fixed plug-in for making this effect, so it is much simpler.</p> <p>First you have to download the Stav plugin first, recommend http://www.51step.com/download/dwplugbe/stav.zip, unzip the two files inside (which include image files cross Browser Static Division.gif and web files Cross Browser Static Division.htm is copied to the DW Installation Directory Configuration / Objects / Common.</p> <p>Restart DW, in the Object panel, you will see that the bottom has already had more Si items, select it to set the floating layer to the upper side and the distance in the pop-up window, and then insert the specified Content (here is a picture).</p> <p>40> How to make the text and the image content?</p> <p>We all know that in DW, the picture object is often exclusive, then the text content can only be displayed in the position of the line with its parallelism.</p> <p>Select the picture, at the top right of the property panel, you can see an "align" property menu, as shown</p> <p>Select "Left", then you will find that the text is already uniformly arranged on the right side of the picture.</p> <p>41> Realize multiple windows connect?</p> <p>The panel design has always been a big feature of DW, to the DW4 version, the panel used is quite, then how can we use it more efficient?</p> <p>"Window Connection" is a convenient technical function, simply, that is, you can put two or more panels in one window as needed.</p> <p>The mouse click to drag a TAB column on the panel to the two panels, when you see a black border, loosen the mouse, then the two panels have been combined for two, and the operation is as follows:</p> <p>42> How to hide some content in the web?</p> <p>In web design, sometimes we need to insert some content that does not require display, such as traffic statistics, user access analysis systems, etc., then consider how to hide them, of course, there is also a premise, they The existence does not affect the layout of other web elements.</p> <p>Click the "Layers" button in the "Object" panel, the mouse drag creates a new layer, which will need to be hidden in all, as shown:</p> <p>Click the small box on the left left on the layer, calibrate it as the selected state, and switch to the properties panel, set the VIS value to "hidden", as shown:</p> <p>Wow! All content is really disappeared</p> <p>43> How to create a simple drop-down menu?</p> <p>The drop-down menu is a web page. It is often just that it can greatly save web space, so mainly in the case of multi-object columns, such as friendship connection list, cooperative website address, etc.</p> <p>A simple production method is provided in DW, so we don't have to write those boring code!</p> <p>Go to the "Form" section of the "Object" panel, as shown: Click the "Insert Jump Menu" button to pop up the "drop-down menu" setting window:</p> <p>Enter the name of the menu item in "Text"; type the URL in "Go to URL" or use the Browse button to select. Click on the top " " to enter the new menu item entry, all items will be displayed in "Menu Items".</p> <p>44> How to make a thin line with a width of 1?</p> <p>In DW, although the horizontal line appears in "line", when making a thin line, it is not satisfactory, mainly, but there is no need for a delicate sense!</p> <p>Then we can take a variety of methods to be implemented in terms of application.</p> <p>Insert a 1 row of 1 column in the web page, set "cellpadding" "cellspacing" "Cellpadding" "CellsPacing", and set the "BGColor" of the cell to red, of course you can also use other colors. Instead, "Height" sets the height of 1.</p> <p>There is also the most critical step, check the source code, "" "" "" "in <TD> </ TD>" can be removed.</p> <p>45> How to make a checkered with a border?</p> <p>Obviously, we still have to complete through the settings of the table.</p> <p>Maybe you will say, this is not simple! Create a 1-row of 1 column table, then set its "Border" value to 1. In fact, the table created with this method is not a checkered border is 1 square, but it is necessary to "thick"!</p> <p>A 1-row of 1 column table is inserted, set "Border", "Cellpadding" of the table to "0", "Cellspacing" is set to "1". Set the "BGColor" of the table is red (ie the color of the border), and the "BGColor" of the cell is set to the white (ie, the same background color), OK. The effect is as follows:</p> <p>46> How to set up different pages according to different browsers?</p> <p>Different browsers, the techniques and effects it support is also different. Therefore, our webpage is not displayed or optimal in all browsers. At this time, it is necessary to jump jump in the browser.</p> <p>When the user opens with different types or version of the browser, different pages can be returned to ensure the normal browsing of the user.</p> <p>Click the "Behavior" button in the Quick Startboard, click " ", select "Check Browse" in the drop-down list, the window is as follows:</p> <p>Set it in order according to different types.</p> <p>47> How can I be built with a web page?</p> <p>When visiting the site, you can often see a lot of elements that can be dragged with the mouse, in which a picture is much, for example, an advertisement picture blocks the content you want to browse, you can use the mouse to throw it to you!</p> <p>Making this effect is implemented by the "Drag Layer" behavior of the layer, click " " in the Behavior panel, select "Drag Layer", of course, you must ensure that the target layer is selected, and after the simple settings OK.</p> <p>48> How to add an external style style sheet (CSS) for the web page</p> <p>The style style table has internal, external division, where we have direct modified settings for web pages elements are within the inside. The external CSS reference is achieved by the <LINK> tag.</p> <p>The <link> tag includes href; type; REL property setting. Where HREF: The address URL used to calibrate the style page file; Rel: Signature CSS: Stylesheet / ALTERMATE; TYPE: Type: TEXT / CSS. 49> What is the purpose of setting up a web page?</p> <p>There is a button called "Base" in the "head" section of the "Object" panel. It is used to set the site base address, then what role is the so-called "base address"?</p> <p>Everyone knows that the way we use in DW is relatively, not absolute, that is, all the points will also follow automatic changes as long as the root address is changed, this kind of benefit is the portability.</p> <p>However, sometimes we need it to do not change, that is, forced it to use a fixed address, click the "Base" button, as shown:</p> <p>Type the URL of the base address in HREF, click OK.</p> <p>50> How to accurately locate the contents of the page?</p> <p>This is an illustrative skill problem, so we put it in the last 50 questions. In terms of current, DW webpage content is mainly implemented by both tables and layers.</p> <p>The form is mainly through each cell to complete the layout of different content. Due to the page, we can complete the form "bloating" (adjust to browse), so it is very convenient to use, and another advantage is that the table is correct What browsers are common, no technical support.</p> <p>Relatively speaking, the layers are more casual, you can drag it as needed. The only thing is that the layer is only supported in the new version of the browser, but according to the current perspective, there should be no obstacle!</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-44186.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="44186" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.035</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'R562e0El1pn6vaeeZdCRC2gNzTYGmaS57rpoXYDv5CB3B2OIfhPOj6GpnGNm8qFH3K4rWvsq9p68jCcZvqFpRA_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>