1. <label id="er9xq"></label>
  2. 主體內(nèi)容<\/div>
    下方按鈕<\/div><\/body>\/\/在body之后放置一些業(yè)務(wù)JS,尤其是當(dāng)中有ajax請(qǐng)求的js3.內(nèi)容布局3.1\t盡量少用easyUI的Panel及Panel的衍生組件(layout,Tabs,datebox)去布局3.2\t對(duì)于登記表,必須要有**** 及 **

    国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

    **元素。具體代碼結(jié)構(gòu)如下:(參考某某頁(yè)面`這里跟項(xiàng)目實(shí)際路徑有關(guān),省略`)\/\/其他代碼
    主體內(nèi)容<\/div>
    下方按鈕<\/div><\/body><\/html>再執(zhí)行一下js代碼:**$.applyLayout();**則會(huì)生成一個(gè)固定有north和south布局的頁(yè)面4.字典項(xiàng)4.1\t簡(jiǎn)單的、變化小的字典項(xiàng)(4項(xiàng)及以下)應(yīng)該直接radio\/checkbox置于頁(yè)面新封裝$.omDic()組件,參考dicQuery.js,使用方法:`此處省略100字,因?yàn)槭歉?xiàng)目后臺(tái)有關(guān)聯(lián)的`5.選擇器盡量少避免使用復(fù)雜的選擇器,能直接用ID盡量用ID選擇。6.子表子表不用tab頁(yè)方式展示,利用點(diǎn)擊按鈕后彈出對(duì)話框的方式展現(xiàn)。7.折疊如果內(nèi)容太多,需要折疊分類顯示,則在相應(yīng)的行上面加上 ```htmlclass=\"list_colspan\" ```即可,邏輯處理置于**$.applyLayout**函數(shù)中(不要用easyUI的accordion)三、\t注意問(wèn)題1.養(yǎng)成良好習(xí)慣,HTML元素要正確閉合,javascript中不要放置多余的逗號(hào)在eclipse中用正則表達(dá)式 ```html ,\\s*[\\r\\n][\\r\\n]\\s*\\} ```去搜索,能查找出js中多余的逗號(hào)2.能用HTML完成的內(nèi)容盡量不要用CSS\/JavaScript去完成,能用CSS去完成的內(nèi)容盡量不要用JavaScript去完成如鼠標(biāo)提示最省資源的方式是用title屬性去完成,其次用:hover偽類,用JavaScript事件最耗資源3.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將變化小的HTTP請(qǐng)求(如查詢字典)改成get請(qǐng)求以緩存4.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將js及css壓縮、合并以減少請(qǐng)求時(shí)間5.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將圖片合并,利用css sprite定位,以減少請(qǐng)求次數(shù)##優(yōu)化后的頁(yè)面示例[DEMO](http:\/\/p2227.github.io\/demo\/applyLayout\/playout.html)<\/pre> <\/p> "}
    Home Web Front-end HTML Tutorial A page optimization guide (easyui page optimization plan) developed by me for the project team_html/css_WEB-ITnose

    A page optimization guide (easyui page optimization plan) developed by me for the project team_html/css_WEB-ITnose

    Jun 24, 2016 pm 12:27 PM

    #本人為項(xiàng)目組制定的一份頁(yè)面優(yōu)化指南(easyui頁(yè)面優(yōu)化方案)##背景這是一篇我之前為項(xiàng)目組制定的頁(yè)面優(yōu)化指南,主要是面向表單頁(yè)面,典型的像[注冊(cè)用戶](https://passport.cnblogs.com/register.aspx)那樣的頁(yè)面。本人的項(xiàng)目主要是基于easyui的,一開(kāi)始都是直接用其中的layout進(jìn)行布局,但對(duì)于一個(gè)實(shí)際項(xiàng)目中有100-200甚至更加多字段的表單項(xiàng),載入的效率很成問(wèn)題經(jīng)過(guò)**本人的分析**(具體的分析過(guò)程見(jiàn)[這里](http://www.cnblogs.com/p2227/p/3540858.html)),發(fā)現(xiàn)layout,datebox,combobox及一些panel的衍生組件(其實(shí)datebox和combobox中也有panel)都是罪魁禍?zhǔn)姿员救酥匦聦懥艘粋€(gè)針對(duì)表單頁(yè)面的優(yōu)化方案,包括文檔和相應(yīng)的代碼,本博主要是其中的文檔部分##文檔如果文檔在網(wǎng)頁(yè)上顯示有問(wèn)題,可以直接下載[PDF格式](http://files.cnblogs.com/p2227/%E9%A1%B5%E9%9D%A2%E4%BC%98%E5%8C%96%E6%8C%87%E5%8D%972.pdf)>頁(yè)面(登記表)優(yōu)化指南一、	文檔目的引導(dǎo)及記錄一套項(xiàng)目頁(yè)面(尤其是登記表頁(yè)面)的優(yōu)化方案二、	優(yōu)化要點(diǎn)1.文檔聲明文檔聲明必須置于網(wǎng)頁(yè)的HTML部分的最開(kāi)始,標(biāo)簽之前。它影響著整個(gè)網(wǎng)頁(yè)的解釋(兼容性及效率問(wèn)題)。目前項(xiàng)目中使用的聲明是<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">`PS:其實(shí)本人還是傾向于向前走,擁抱HTML5的`2.HTML架構(gòu)頁(yè)面元素結(jié)束之前不要放太多的script標(biāo)簽,一個(gè)帶src的script標(biāo)簽會(huì)引起一次請(qǐng)求,如果標(biāo)簽中的代碼另外發(fā)起了ajax請(qǐng)求更加需要置后。為了便于開(kāi)發(fā),一部分通用的JS可能置于body之前,即整體代碼架構(gòu)如下://在body之前放置一些通用JS<body class="wds-layout-body><div id="center-layout" class="wds-layout-scroll wds-layout-north">主體內(nèi)容</div><div id="south-layout" class="wds-layout-button wds-layout-south">下方按鈕</div></body>//在body之后放置一些業(yè)務(wù)JS,尤其是當(dāng)中有ajax請(qǐng)求的js3.內(nèi)容布局3.1	盡量少用easyUI的Panel及Panel的衍生組件(layout,Tabs,datebox)去布局3.2	對(duì)于登記表,必須要有**<html>** 及 **<body>**元素。具體代碼結(jié)構(gòu)如下:(參考某某頁(yè)面`這里跟項(xiàng)目實(shí)際路徑有關(guān),省略`)<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html xmlns="http://www.w3.org/1999/xhtml">//其他代碼<body class="wds-layout-body"><div id="center-layout" class="wds-layout-scroll wds-layout-north">主體內(nèi)容</div><div id="south-layout" class="wds-layout-button wds-layout-south">下方按鈕</div></body></html>再執(zhí)行一下js代碼:**$.applyLayout();**則會(huì)生成一個(gè)固定有north和south布局的頁(yè)面4.字典項(xiàng)4.1	簡(jiǎn)單的、變化小的字典項(xiàng)(4項(xiàng)及以下)應(yīng)該直接radio/checkbox置于頁(yè)面新封裝$.omDic()組件,參考dicQuery.js,使用方法:`此處省略100字,因?yàn)槭歉?xiàng)目后臺(tái)有關(guān)聯(lián)的`5.選擇器盡量少避免使用復(fù)雜的選擇器,能直接用ID盡量用ID選擇。6.子表子表不用tab頁(yè)方式展示,利用點(diǎn)擊按鈕后彈出對(duì)話框的方式展現(xiàn)。7.折疊如果內(nèi)容太多,需要折疊分類顯示,則在相應(yīng)的行上面加上  ```htmlclass="list_colspan" ```即可,邏輯處理置于**$.applyLayout**函數(shù)中(不要用easyUI的accordion)三、	注意問(wèn)題1.養(yǎng)成良好習(xí)慣,HTML元素要正確閉合,javascript中不要放置多余的逗號(hào)在eclipse中用正則表達(dá)式 ```html ,\s*[\r\n][\r\n]\s*\} ```去搜索,能查找出js中多余的逗號(hào)2.能用HTML完成的內(nèi)容盡量不要用CSS/JavaScript去完成,能用CSS去完成的內(nèi)容盡量不要用JavaScript去完成如鼠標(biāo)提示最省資源的方式是用title屬性去完成,其次用:hover偽類,用JavaScript事件最耗資源3.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將變化小的HTTP請(qǐng)求(如查詢字典)改成get請(qǐng)求以緩存4.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將js及css壓縮、合并以減少請(qǐng)求時(shí)間5.項(xiàng)目?jī)?nèi)容穩(wěn)定后,應(yīng)該將圖片合并,利用css sprite定位,以減少請(qǐng)求次數(shù)##優(yōu)化后的頁(yè)面示例[DEMO](http://p2227.github.io/demo/applyLayout/playout.html)

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

    Hot AI Tools

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    Explain the purpose of the role attribute in ARIA. Explain the purpose of the role attribute in ARIA. Jun 14, 2025 am 12:35 AM

    ARIA's role attribute is used to define the role of web elements and improve accessibility. 1. Role attribute helps assistive technology to understand the functions of elements, such as buttons, navigation, etc. 2. Use role attributes to assign specific roles to non-semantic HTML elements. 3. The role attribute should be consistent with the element behavior and be verified by the accessibility tool test.

    HTML and Design: Creating the Visual Layout of Websites HTML and Design: Creating the Visual Layout of Websites Jun 14, 2025 am 12:39 AM

    How to create a website layout? 1. Use HTML tags to define the content structure, such as, ,. 2. Control styles and positions through CSS, using box model, float or Flexbox layout. 3. Optimize performance, reduce HTTP requests, use cache and optimize images, and ensure responsive design.

    How can you ensure your HTML code is readable and maintainable? How can you ensure your HTML code is readable and maintainable? Jun 10, 2025 am 12:06 AM

    Improve the readability and maintainability of HTML code can be achieved through the following steps: 1. Use semantic tags, such as, etc. to make the code structure clear and improve SEO effect; 2. Keep the code formatted and use consistent indentation and spaces; 3. Add appropriate comments to explain the code intention; 4. Avoid excessive nesting and simplify the structure; 5. Use external style sheets and scripts to keep the HTML concise.

    How do I stay up-to-date with the latest HTML standards and best practices? How do I stay up-to-date with the latest HTML standards and best practices? Jun 20, 2025 am 08:33 AM

    The key to keep up with HTML standards and best practices is to do it intentionally rather than follow it blindly. First, follow the summary or update logs of official sources such as WHATWG and W3C, understand new tags (such as) and attributes, and use them as references to solve difficult problems; second, subscribe to trusted web development newsletters and blogs, spend 10-15 minutes a week to browse updates, focus on actual use cases rather than just collecting articles; second, use developer tools and linters such as HTMLHint to optimize the code structure through instant feedback; finally, interact with the developer community, share experiences and learn other people's practical skills, so as to continuously improve HTML skills.

    How do I use the  element to represent the main content of a document? How do I use the element to represent the main content of a document? Jun 19, 2025 pm 11:09 PM

    The reason for using tags is to improve the semantic structure and accessibility of web pages, make it easier for screen readers and search engines to understand page content, and allow users to quickly jump to core content. Here are the key points: 1. Each page should contain only one element; 2. It should not include content that is repeated across pages (such as sidebars or footers); 3. It can be used in conjunction with ARIA properties to enhance accessibility. Usually located after and before, it is used to wrap unique page content, such as articles, forms or product details, and should be avoided in, or in; to improve accessibility, aria-labeledby or aria-label can be used to clearly identify parts.

    How do I create a basic HTML document? How do I create a basic HTML document? Jun 19, 2025 pm 11:01 PM

    To create a basic HTML document, you first need to understand its basic structure and write code in a standard format. 1. Use the declaration document type at the beginning; 2. Use the tag to wrap the entire content; 3. Include and two main parts in it, which are used to store metadata such as titles, style sheet links, etc., and include user-visible content such as titles, paragraphs, pictures and links; 4. Save the file in .html format and open the viewing effect in the browser; 5. Then you can gradually add more elements to enrich the page content. Follow these steps to quickly build a basic web page.

    How do I create checkboxes in HTML using the  element? How do I create checkboxes in HTML using the element? Jun 19, 2025 pm 11:41 PM

    To create an HTML checkbox, use the type attribute to set the element of the checkbox. 1. The basic structure includes id, name and label tags to ensure that clicking text can switch options; 2. Multiple related check boxes should use the same name but different values, and wrap them with fieldset to improve accessibility; 3. Hide native controls when customizing styles and use CSS to design alternative elements while maintaining the complete functions; 4. Ensure availability, pair labels, support keyboard navigation, and avoid relying on only visual prompts. The above steps can help developers correctly implement checkbox components that have both functional and aesthetics.

    What is an HTML tag? What is an HTML tag? Jun 13, 2025 am 12:36 AM

    HTMLtagsareessentialforstructuringwebpages.Theydefinecontentandlayoutusinganglebrackets,ofteninpairslikeand,withsomebeingself-closinglike.HTMLtagsarecrucialforcreatingstructured,accessible,andSEO-friendlywebpages.

    See all articles