MVC + EasyUI + three-layer news website homepage layout (5), mvceasyui

Source: Internet
Author: User

MVC + EasyUI + three-layer news website homepage layout (5), mvceasyui

Create an MVC news website for homepage layout.

First, create the Home controller, and then create the Index view.

Just like the previous logon page, several files need to be introduced.

Then, right-click the full browser in layout in the demo in the easyui folder you downloaded and right-click it to view the code. Copy the code in the body to the body of the Index view. If no code is found, you can directly copy the following code.

<body class="easyui-layout">  <div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;padding:10px">north region</div>  <div data-options="region:'west',split:true,title:'West'" style="width:150px;padding:10px;">west content</div>  <div data-options="region:'east',split:true,collapsed:true,title:'East'" style="width:100px;padding:10px;">east region</div>  <div data-options="region:'south',border:false" style="height:50px;background:#A9FACD;padding:10px;">south region</div>  <div data-options="region:'center',title:'Center'"></div></body>

Run the code to get the result.

It is generally not the rightmost div, so you can delete the rightmost div.

The upper layout of the page is to add a background image based on what you have done. I have not found a suitable image here.

The right navigation menu area of the page uses the accordion layout format. Replace the following code

<Div data-options = "region: 'west', split: true, title: 'west'" style = "width: 150px; padding: 0px; "> <div class =" easyui-accordion "style =" width: auto; height: auto; "> <div title =" news management "data-options =" iconCls: 'icon-OK '"style =" overflow: auto; padding: 10px; "> <a href =" javascript: void (0) "rel =" external nofollow "rel =" external nofollow "class =" detailLink123 "url ="/AdminNewInfo/Index "> News management </a> </div> <div title = "comment Management" data-options = "iconCls: 'icon-OK '"style =" overflow: auto; padding: 10px; "> <a href =" javascript: void (0) "rel =" external nofollow "rel =" external nofollow "class =" detailLink123 "url ="/CommentInfo/Index "> Comment management </a> </div> </div>

At the bottom of the page is some copyright settings. Therefore, you do not need to write more here.

Next section about tab

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.