Webpage resizable layout and resizable Layout

Source: Internet
Author: User

Webpage resizable layout and resizable Layout
Resizable Layout

When developing a desktop application, an application usually has multiple panes. These panes need to be adjustable in width and height. For node-webkit development, the layout is the webpage layout. In this case, the resize attribute is required, actual effect such as: http://jsfiddle.net/

You can use the resizable attribute of jquery. ui.

In Css layout, the parent div of the outermost layer is set to relative positioning, and the child div inside is set to absolute positioning.

Take a left and right layout as an example, the code is as follows, the actual effect of the page: http://jsfiddle.net/7vn4j5rz/

Because the js Code is filtered out by csdn, you can go to http://lufeng.me/post/resizable-layout-copy.pdf

<!DOCTYPE html>
Css:
$ (Function () {$ ('. rightChild '). width ($ ('. parent '). width ()-$ ('. leftChild '). width ()-20); $ (". leftChild "). resizable ({handles: 'E', // set the direction of resize to North, Sourth, West, East maxWidth: 450, minWidth: 100}); $ ('. leftChild '). resize (function () {$ ('. rightChild '). width ($ ('. parent '). width ()-$ ('. leftChild '). width ()-20 );});})

Webpage Layout

1. There are many la S, and many HTML languages have the layout function for tags. For example, FRAME, P <br>
And so on. These are common la S, of course, in a broad sense.
2. A special layout method is CSS.
3. You can also learn JSP and use code layout.
4. I think CSS is the most convenient. JSP is the most powerful and can be used as needed. HTML is the simplest and has the least functionality.
5. HTML labels can be used for text boxes. For example, <input type = "submit"> indicates a button for submission,
<Input type = "text"> indicates a text box.
6. the database requires programming knowledge. ODBC (Data Source) is also used ). And you need to write your own code.
7 to sum up, it is actually your basic problem. You can start with HTML linguistics, then learn ASP, then the basic database language, and finally the CSS. After you understand it, you will not ask this question again. I want to become a master in about a month.

How do I deploy webpages?

In the previous lesson, we explained what layout tables are and what are the differences between layout tables and regular tables. Five steps are required to complete this process. Each step is described in detail in this lesson. This course also introduces webpage setting tips that simplify the design process. Before you start to draw layout tables and cells, you need to complete some web page preparation work. Use the View menu to complete the following settings: The display ruler ensures that the ruler is displayed, as shown in this figure. The ruler helps you measure the width and height of the layout (in pixels ). Although the default margin is not displayed in this figure, the default margin does exist at the top and left of the page. After the default margin is cleared, it is more convenient to use the ruler. Although it is not necessary to display the grid, the grid can be used as a reference for drawing operations. The first step in creating a layout is to create a layout table. This step can be completed by "Drawing" or dragging the table to the desired size. The following are some tips about drawing a layout table: Before you begin, you should first design the layout width. Remember that some people may have a relatively low display resolution. If your layout is too wide, it may not be all displayed. Using a ruler, an image tracing, or a grid as a reference, no matter which tool you use, you will find that using these features can greatly simplify layout placement. The second step is to draw layout cells. They are the content part of the layout. Below are some tips about cell painting: Do not worry about cell painting is perfect, please draw layout cells boldly, and then adjust the position and size as needed. The width and height can only be measured in pixels, because the layout cell function can only be used for fixed, pixel-based table design. (Automatic scaling is an exception. In this case, you can set the width or height to 100% to match the width or height with the available space. This is a common technique used after layout tables and cells are designed. To adjust the size of the layout cell, click the size adjustment control point, and then press Alt when the size is adjusted. Step 3: Adjust the layout cell. You must adjust the layout cell slightly: some cells may need to be slightly adjusted, while some cells need to be moved or slightly moved to the correct position. You can drag the cursor to adjust the size of the layout cell. In addition, as described in the previous lesson, you can drag the entire cell to move it to the corresponding position. When dragging to adjust the cell size or move the cell, FrontPage uses a 10-pixel step increment for any movement or size adjustment. In some cases, this function is very useful, and sometimes it is not required. To ignore this step-by-step function, hold down the Alt key when adjusting the cell size or moving the cell. Note that there are other ways to adjust the layout cell size and move the layout cell. These methods will be described in subsequent exercise units. Step 4: Set the cell filling and format after drawing the layout table and cell, you naturally want to fill the content in it. You can use multiple methods to complete the task. You can type text, use various options in the "insert" menu, or drag and drop an image, as shown in the figure. In addition, you may want to use the background color, padding, and border to set the layout table and cell format. These settings can be performed in the layout table and cell tab on the right side of the page. The method is similar to that of the common table. I will not go into details here. After filling in the layout and setting the format, you must use the "preview in the browser" command in the "file" menu to ensure that the webpage is correct.

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.