Just getting started with easyui, getting started with easyui

Source: Internet
Author: User

Just getting started with easyui, getting started with easyui

I have read easyui's teaching over the past two days. Let's talk about some of my little understandings!

 

---- You also encountered a problem when using easyui:
Uncaught TypeError: cannot call method 'offset' of undefined // method declaration...
After searching for related problems on Baidu, it was found that the easyui package was modified, which caused some style errors in addition to the problem...

 

1. Introduce easyui main files:

  

<Script type = "text/javascript" src = "easyword/jEasyUi/jquery-1.4.2.min.js"> </script>
<Script type = "text/javascript" src = "easyword/jEasyUi/jquery. easyui. min. js"> </script>
<Script type = "text/javascript" src = "easyword/jEasyUi/locale/easyui-lang-zh_CN.js"> </script>
<Link href = "easyword/jEasyUi/themes/default/easyui.css" rel = "stylesheet"/>
<Link rel = "stylesheet" type = "text/css" href = "easyword/jEasyUi/themes/icon.css"/>

 

2. Layout: north, south, east, west, and center)

Example:

<Body class = "easyui-layout">
<Div data-options = "region: 'North ', Upper north title: 'North title', split: true "> <div id =" p "class =" easyui-panel "title =" My Panel "> <div id =" p "class =" easyui-panel "title = ""My Panel" data-options = "width: 500px; height: 150px; padding: 10px; background: # fafafa; "iconCls =" icon-save "closable =" true "collapsible =" true "minimizable =" true "maximizable = true>

---- The above is the class writing method, and the following is the JS writing method, for example:

<Div id = "login">
<P> account: <input class = "easyui-numberbox" id = "manager" type = "text" name = "name" value = ""/> </p>
<P> password: <input class = "easyui-numberbox" id = "managerpass" type = "password" name = "name" value = ""/> </p>
</Div>

 

First give div an id ("login ")




 

Related Article

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.