search
HomeWeb Front-endHTML TutorialA set of background management html template_html/css_WEB-ITnose

Recently, I needed a set of templates for backend management, and then I searched online. There are indeed many templates, but not many are suitable for me. The template I need is not too big, I can control the code, the style should not be too primitive, and it is best to have some CSS3 effect. Finally, I found a home page, and then edited other background parts based on this home page. When I first saw this style, I was very satisfied. Now only four pages have been created, login, homepage, menu management and menu addition pages.

Browser compatibility is to ensure that IE8 or above can be used, and firefox, chrome browsers, etc. are fully compatible . Since IE8 cannot parse CSS3, additional CSS will be produced in some places. The following codes are not complete codes. For complete codes, please refer to the downloaded demo.

1. The page uses a lot of HTML5 and CSS3

My understanding of html5 has always been superficial and lacks imagination. This time I passed this The template page allows you to learn more about the situations in which these tags are more suitable to be used. Selectors are also used in many places, which broadens my horizons. The small icons in the left column were originally displayed in img, but now I have changed them to icon fonts. They are available online directly through the icomoon website. Using icon fonts will make it easy to control the style and size.

<header id="header">        <hgroup>            <h1 id="a-href-index-html-Website-Admin-a"><a href="index.html">Website Admin</a></h1>            <h2 id="Dashboard">Dashboard</h2><div class="btn_view_site"><a href="http://www.cnblogs.com/strick/">View Site</a></div>        </hgroup>    </header>

.quick_search input[type=text] {-webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;border: 1px solid #bbb;height: 26px;width: 90%;color: #ccc;-webkit-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;-moz-box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;box-shadow: inset 0 2px 2px #ccc, 0 1px 0 #fff;text-indent: 30px;background: #fff url(../images/icn_search.png) no-repeat;background-position: 10px 6px;}

2. Use % ratio for width, making reuse more convenient

This set of templates All use % to set the width. This time I also felt the convenience of this setting method. The template only provides the homepage, and the login page is added later. This part is to define a width on the outermost layer, and the inside is displayed according to the percentage, without any aliasing, and there is no need to modify the code.

<div class="w500 mc ovh">        <section id="main" >            <article class="module width_full">                <header><h3 id="登录">登录</h3></header>            </article>        </section>    </div>

Just add a

to complete a page layout.

3. General and beautiful tips

You can just copy this tip. The code is very concise and the style looks very comfortable.

<h4 id="Welcome-to-the-free-MediaLoot-admin-panel-template-this-could-be-an-informative-message">Welcome to the free MediaLoot admin panel template, this could be an informative message.</h4><h4 id="A-Warning-Alert">A Warning Alert</h4><h4 id="An-Error-Message">An Error Message</h4><h4 id="A-Success-Message">A Success Message</h4>

4. General table style

Later, use Table is more convenient, and the width is also displayed in % ratio. When copied to each page, it can be integrated harmoniously. Using icons to display operations is also very clear.

5. CSS3 button

I have always wanted to try using CSS3 to create button effects. This time I finally got the chance. I looked for it online. I made a set, made some minor modifications, and made browser compatibility.

The effect is indeed good, but the CSS code suddenly increased a lot, and in order to achieve similar effects for browsers such as IE8 that are not compatible with CSS3, I also wrote a little extra CSS, assisted by the JS plugin modernizr.

a.button {    display:inline-block;    position: relative;    height: 25px;    width: 80px;    margin: 0 10px 18px 0;        text-decoration: none;    font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;    font-weight: bold;    line-height: 25px;    text-align: center;        -webkit-border-radius: 3px;     -moz-border-radius: 3px;    border-radius: 3px;      }  a.button:before,  a.button:after {    content: '';    position: absolute;    left: -1px;    height: 25px;    width: 80px;    bottom: -1px;        -webkit-border-radius: 3px;     -moz-border-radius: 3px;    border-radius: 3px;  }  a.button:before {     height: 23px;    bottom: -4px;    border-top: 0;        -webkit-border-radius: 0 0 3px 3px;     -moz-border-radius: 0 0 3px 3px;    border-radius: 0 0 3px 3px;        -webkit-box-shadow: 0 1px 1px 0px #bfbfbf;    -moz-box-shadow: 0 1px 1px 0px #bfbfbf;    box-shadow: 0 1px 1px 0px #bfbfbf;  }/* MODERNIZR FALLBACK */  .no-cssgradients a.button, .no-cssgradients a.button:visited,  .no-borderradius a.button, .no-borderradius a.button:visited,  .no-generatedcontent a.button, .no-generatedcontent a.button:visited {    background: url(../images/img_btn.png) no-repeat 0 0px;    height: 32px;    width: 82px;  }

6. CSS3 Pagination

This was also added later by myself. It fits into this style quite well. I also added it in it. Some CSS3 elements

ul.paginationA01 li a{    color:#474747;    border:solid 1px #B6B6B6;    padding:6px 9px 6px 9px;    background:#E6E6E6;    background:-moz-linear-gradient(top,#FFFFFF 1px,#F3F3F3 1px,#E6E6E6);    background:-webkit-gradient(linear,0 0,0 100%,color-stop(0.02,#FFFFFF),color-stop(0.02,#F3F3F3),color-stop(1,#E6E6E6));}        ul.paginationA01 li a:hover,ul.paginationA01 li a.current{    background:#FFFFFF;}ul.paginationA01 li a:active{    background:#D9D9D9;    background:-moz-linear-gradient(top,#FFFFFF 1px,#EAEAEA 1px,#b6b6b6);    background:-webkit-gradient(linear,0 0,0 100%,color-stop(0.02,#FFFFFF),color-stop(0.02,#EAEAEA),color-stop(1,#b6b6b6));    }

7. Unit test module

under the tests folder, I have added a unit test module to make my future JS script code more robust.

Through the above decomposition modules, you can basically meet the style needs of each part of the backend management, and you can also have a set of management templates that can be modified!

Demo download:

http://download.csdn.net/download/loneleaf1/7711311

References :

http://medialoot.com/preview/admin-template/index.html Web page background template
http://webdesign.tutsplus.com/tutorials/orman-clarks-chunky-3d- web-buttons-the-css3-version--webdesign-5731 Button production
http://icomoon.io/ Make your own icon

Statement
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
HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The Role of HTML: Structuring Web ContentThe Role of HTML: Structuring Web ContentApr 11, 2025 am 12:12 AM

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTML and Code: A Closer Look at the TerminologyHTML and Code: A Closer Look at the TerminologyApr 10, 2025 am 09:28 AM

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract

HTML, CSS, and JavaScript: Essential Tools for Web DevelopersHTML, CSS, and JavaScript: Essential Tools for Web DevelopersApr 09, 2025 am 12:12 AM

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

The Roles of HTML, CSS, and JavaScript: Core ResponsibilitiesThe Roles of HTML, CSS, and JavaScript: Core ResponsibilitiesApr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

See all articles

Hot AI Tools

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.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment