web移动端前端构建(含样式布局,纯净版不含其它样式框架)_html/css_WEB-ITnose
@charset 'utf-8';*{margin:0;padding:0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-text-size-adjust:none; } /* highlight equal to outline,only dose it has a effect in google chrome lite browser */*:focus,*:active {outline:none;}html, body { height:100%;}body{ width: 100%;font-family: \5FAE\8F6F\96C5\9ED1,\5B8B\4F53;-webkit-user-select:none;}p,a,span,textarea,b,input,dt,dd { color: #666;font-size: 0.9rem;}ul, ol{list-style:none;}img{border:none;}a { text-decoration:none;}textarea {resize:none;}input[type=button],button{text-align: center; background: none; border: 0; outline: none; }input { background: white; border: none; outline: none;}/*占位符颜色*/input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color:#ccc; }input:-moz-placeholder, textarea:-moz-placeholder { color:#ccc; }input::-moz-placeholder, textarea::-moz-placeholder { color: #ccc; }input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #ccc; }/* 浮动 */.fl { float: left !important; }.fr { float: right !important; }.clear { clear: both; }/* 功能 */.hide { display:none !important; }/*隐藏*/.ellipsis { overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all; } /* 字数省略 */.keep { position:fixed !important;border-bottom: #ccc 1px solid !important; } /*滚动保持*/.mask {display: none;position: fixed;left: 0;z-index: 11;width: 100%; height: 100%;background-color:rgba(0, 0, 0, 0.4);}/*遮罩层*//* 效果 */.shadow,.all-shadow * {box-shadow: 0 0 .3rem #ddd !important;}.gradient,.all-gradient * {background: -webkit-linear-gradient(top, #fff4f4,#fff);}.radius,.all-radius * { border-radius: .2em;}.left-radius {border-top-left-radius: .2em;border-bottom-left-radius: .2em;}.right-radius {border-top-right-radius: .2em;border-bottom-right-radius: .2em;}.top-radius {border-top-left-radius: .2em;border-top-right-radius: .2em;}/* ---------------------------------- 主题A开始 ---------------------------------- *//* 母版样式 */.app{display:table;width:100%;height:100%;}.app>* { display: table-row; }.app>:nth-child(2) { width: 100%;height:100%; }.app>:first-child,.header{top:0; width: 100%;height: 2.5rem;line-height:2.5rem;}.app>:last-child,.footer{ bottom:0;width: 100%; /*height: 4rem;*/}/*height:无定义高度,当需要页脚时可在当前页定义页脚,并添加标签<div class="footer"></div>即可*/.header,.footer{ position:fixed;display:table;}.header>*{display:table-cell;font-size:1rem;color:white;}.A-color{ color: #00c1d9 }.A-color-gray {color: #ccc}.A-color-error { color: #ff8181 }.A-color-success { color:green }.A-color-disabled { color: #999 }.A-border { border-color: #ccc }.A-border-top{ border-top:1px solid #ccc}.A-border-bottom {border-bottom:1px solid #ccc }.A-border-left { border-left:1px solid #ccc }.A-border-right{ border-right:1px solid #ccc }.A-bg {background-color:#00c1d9 !important } /* 主题点击效果 */.A-bg-body { background-color: #d9d9d9; } /* 主题body背景 */.A-bg-bar {background-color:#e6e6e6 !important } /* 主题点击效果 */.A-icon-filter{ background: url(/Image/Ico/filter.png) center no-repeat;background-size:1.4rem;}.A-icon-user{ background: url(/Image/Ico/user.png) center no-repeat;background-size:1.4rem;}.A-icon-arrow-down{ background: url(/Image/Ico/arrow_down.png) 1rem center no-repeat;background-size:.8rem .4rem;}.A-btn-all,.A-btn {} /* 主题按钮 */.A-btn-click {background-color:#00b5cb !important } /* 主题点击效果 *//* ---------------------------------- 主题A结束 ---------------------------------- */
asp.net 母版页:
<!DOCTYPE html><html><head> <meta charset="utf-8" name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <title>@ViewBag.Title</title> @Styles.Render("~/Css") @RenderSection("css", false)</head><body><div class="app"> <div></div> <div>@RenderBody()</div> <div></div></div>@Scripts.Render("~/Js")@RenderSection("js", required: false)</body></html>
asp.net 首页:
@{ ViewBag.Title = "首页";}@section css{ <style> .app > :last-child, .footer { height:2.5rem } .city-btn { width: 5.5rem;text-indent:2.3rem; } .filter-btn,.user-btn{ width:3.2rem;} </style>}<div class="header A-bg"> <a class="city-btn A-icon-arrow-down A-btn"></a> <h1></h1> <a class="filter-btn A-icon-filter A-btn"></a> <a class="user-btn A-icon-user A-btn"></a></div><div class="body"><br /> //...</div><div class="footer A-bg"></div>@section js{ <script> //... </script>}
显示结果:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

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.

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

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

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 Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...
