search
HomeWeb Front-endHTML Tutorialpure css simple component, learn from bootstrap_html/css_WEB-ITnose

 

<!doctype html><html><head><meta http-equiv="Content-type" content="text/html; charset=utf-8"><!--缩放比例以及允许缩放--><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"><!--格式的检测,电话,邮箱--><meta name="format-detection" content="telephone=no, email=no" /><!--是否显示苹果工具栏和菜单栏--><meta name="apple-mobile-web-app-capable" content="yes" /><!--状态栏样式--><meta name="apple-mobile-web-app-status-bar-style" content="black" /><title>按钮扩展</title><!--[if lte IE 8]>    <link rel="stylesheet" type="text/css" href="pure0.6.0/grids-responsive-old-ie-min.css"><![endif]--><!--[if gt IE 8]><!--><link rel="stylesheet" type="text/css" href="pure0.6.0/pure-min.css"><!--<![endif]--><style>.button-success, .button-error, .button-warning, .button-secondary {	color: white;	border-radius: 4px;	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);}.button-success {	background-color: #1CB841;}.button-error {	background-color: #CA3C3C;}.button-warning {	background-color: #DF7514;}.button-secondary {	background-color: #42B8DD;}/*分页*/.pure-paginator {	letter-spacing: -0.31em;	/* Webkit: collapse white-space between units; */	text-rendering: optimizespeed;	/* Webkit: fixes text-rendering: optimizeLegibility; */	list-style: none;	margin: 0;	padding: 0;}.pure-paginator li {	display: inline-block;	zoom: 1;	letter-spacing: normal;	word-spacing: normal;	vertical-align: top;	text-rendering: auto;}.pure-button-primary.pure-button-active {	background-color: #E6E6E6;	color: #666666;}.pure-form .pure-input-group {	margin-bottom: 0;	vertical-align: middle;	position: relative;	border-collapse: separate;	vertical-align: middle;	box-sizing: border-box;	display: table;}.pure-input-group-addon {	padding: 6px 12px;	font-size: 14px;	font-weight: 400;	line-height: 1;	color: #555;	text-align: center;	background-color: #E6E6E6;	border: 1px solid #ccc;	border-radius: 4px;	white-space: nowrap;	vertical-align: middle;}.pure-input-group-addon:first-child {	border-right: 0;	border-top-right-radius: 0;	border-bottom-right-radius: 0;	width: auto;	display: table-cell;}.pure-input-group-addon:last-child {	border-left: 0;	border-top-left-radius: 0;	border-bottom-left-radius: 0;	width: auto;	display: table-cell;}.pure-input-group input:not(:first-child):not(:last-child) {	border-radius: 0;}.pure-input-group input:not(:first-child) {	border-top-left-radius: 0;	border-bottom-left-radius: 0;}.pure-input-group input:not(:last-child) {	border-top-right-radius: 0;	border-bottom-right-radius: 0;}/*参考bootstrap的箭头*/.pure-caret {	display: inline-block;	width: 0;	height: 0;	margin-left: 2px;	vertical-align: middle;	border-top: 4px dashed;	border-right: 4px solid transparent;	border-left: 4px solid transparent;}/*tab*/.pure-tab {	letter-spacing: -0.31em;	/* Webkit: collapse white-space between units; */	text-rendering: optimizespeed;	/* Webkit: fixes text-rendering: optimizeLegibility; */	list-style: none;	margin: 0;	padding: 0;	border-bottom: 1px #e6e6e6 solid;}.pure-tab li {	display: inline-block;	zoom: 1;	letter-spacing: normal;	word-spacing: normal;	vertical-align: top;	text-rendering: auto;	margin-bottom: -1px;}.pure-tab li .pure-button {	background-color: #FFF;}.pure-tab-active {	background-color: #E6E6E6;	color: #666666;	border: 1px #e6e6e6 solid;	border-bottom: 0px;}.pure-tab li .pure-button:active, .pure-tab li .pure-button:link, .pure-tab li .pure-button:visited {	box-shadow: none;	background: none;	background-color: #FFF;}.pure-tab li .pure-button:hover {	background-color: #e6e6e6;}</style></head><body><p>按钮</p><hr/><button class="button-success pure-button">Success Button</button><button class="button-error pure-button">Error Button</button><button class="button-warning pure-button">Warning Button</button><button class="button-secondary pure-button">Secondary Button</button><hr/><a class="pure-button button-success " href="#">A Primary Button</a> <a class="pure-button button-warning" href="#">A Primary Button</a> <a class="pure-button button-secondary" href="#">A Primary Button</a> <a class="pure-button button-error" href="#">A Primary Button</a><hr/><ul class="pure-paginator">  <li><a class="pure-button prev" href="#">&laquo;</a></li>  <li><a class="pure-button" href="#">1</a></li>  <li><a class="pure-button pure-button-active" href="#">2</a></li>  <li><a class="pure-button button-warning" href="#">3</a></li>  <li><a class="pure-button" href="#">4</a></li>  <li><a class="pure-button button-warning pure-button-active" href="#">5</a></li>  <li><a class="pure-button next" href="#">&raquo;</a></li></ul><hr/><p>表单扩展</p><hr/><form class="pure-form">  <div class="pure-input-group">    <div class="pure-input-group-addon">$</div>    <input type="text" class="pure-input-1"  placeholder="Amount"/>    <div class="pure-input-group-addon">.00</div>  </div>  <hr/>  <div class="pure-input-group">    <input type="text" class="pure-input-1"  placeholder="Amount"/>    <div class="pure-input-group-addon">.00</div>  </div>  <hr/>  <div class="pure-input-group">    <div class="pure-input-group-addon">$</div>    <input type="text" class="pure-input-1"  placeholder="Amount"/>  </div></form><hr/><div class="pure-caret"></div><hr><div class="pure-menu pure-menu-horizontal">  <ul class="pure-menu-list">    <li class="pure-menu-item pure-menu-selected"><a href="#" class="pure-menu-link">Home</a></li>    <li class="pure-menu-item pure-menu-allow-hover"> <a href="#" id="menuLink1" class="pure-menu-link">Contact      <div class="pure-caret"></div>      </a>      <ul class="pure-menu-children">        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Email</a></li>        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Twitter</a></li>        <li class="pure-menu-item"><a href="#" class="pure-menu-link">Tumblr Blog</a></li>      </ul>    </li>  </ul></div><hr/><ul class="pure-tab">  <li><a class="pure-button " href="#">111</a></li>  <li><a class="pure-button " href="#">222</a></li>  <li><a class="pure-button pure-tab-active" href="#">333</a></li>  <li><a class="pure-button " href="#">444</a></li>  <li><a class="pure-button " href="#">555</a></li></ul><hr/></body></html>

There is a small bug when using the menu arrow (I have submitted the bug on github and received feedback, it may be Improvement), issue link https://github.com/yahoo/pure/issues/489#issuecomment-103159329

It is the first time I report a bug to a foreigner and I am very excited to receive feedback. Although I used Chinese, the other party used Google to translate.

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 in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

Explain the importance of using consistent coding style for HTML tags and attributes.Explain the importance of using consistent coding style for HTML tags and attributes.May 01, 2025 am 12:01 AM

A consistent HTML encoding style is important because it improves the readability, maintainability and efficiency of the code. 1) Use lowercase tags and attributes, 2) Keep consistent indentation, 3) Select and stick to single or double quotes, 4) Avoid mixing different styles in projects, 5) Use automation tools such as Prettier or ESLint to ensure consistency in styles.

How to implement multi-project carousel in Bootstrap 4?How to implement multi-project carousel in Bootstrap 4?Apr 30, 2025 pm 03:24 PM

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How does deepseek official website achieve the effect of penetrating mouse scroll event?How does deepseek official website achieve the effect of penetrating mouse scroll event?Apr 30, 2025 pm 03:21 PM

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

How to modify the playback control style of HTML videoHow to modify the playback control style of HTML videoApr 30, 2025 pm 03:18 PM

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

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

Video Face Swap

Video Face Swap

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

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment