Easyui homepage template, easyui Homepage
Easyui homepage html code
<! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
In easyui, the home page is generally layout. A layout can be divided into multiple parts, and there are middle east, south, left West, and right east. The upper part is generally used to display the logo, user name, logout and other information. The lower part is used to store company information. The left side is the navigation bar, and the rest is a different tab, used to simulate the multi-window mode.
The navigation bar uses accordion in easyui, which is not mentioned in the api, but he is the most suitable for navigation bar. Click it to scale down the expansion. The effect is good. In js, the run method opens the corresponding page in the middle tab.
The reason why the run method is used is that the opening effect is different. The first method is to add a div in the dom, And the css reference in it does not take effect, the element in the form shares a dom with the whole form. The second method adds an iframe to the form, and the big form is the concept of a child parent form. The child form does not pollute the parent form. We recommend that you use second, otherwise you will be troubled by the names of more and more element IDs.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.