HTML布局之计算器(div+css)_html/css_WEB-ITnose
纯布局, 没有功能实现, 代码多但是不难, 可以作为参考.
代码示例:
html(div)代码:
<title>计算器</title> <meta charset="utf-8"> <meta name="keywords" content="keyword1,keyword2,keyword3"> <meta name="description" content="this is my page"> <meta name="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="css/layout.css"> <a href="Main.html">返回主页</a> <div id="container"> <div id="title"> <div id="image"> <img src="/static/imghw/default1.png" data-src="Image/image.png" class="lazy" alt="HTML布局之计算器(div+css)_html/css_WEB-ITnose" > </div> <div id="word"><p>计算器</p></div> <div id="select"> <div id="min"><img src="/static/imghw/default1.png" data-src="Image/min.png" class="lazy" alt="HTML布局之计算器(div+css)_html/css_WEB-ITnose" ></div> <div id="max"><img src="/static/imghw/default1.png" data-src="Image/max.png" class="lazy" alt="HTML布局之计算器(div+css)_html/css_WEB-ITnose" ></div> <div id="off"><img src="/static/imghw/default1.png" data-src="Image/off.png" class="lazy" alt="HTML布局之计算器(div+css)_html/css_WEB-ITnose" ></div> </div> </div> <div id="main"> <div id="menu"> <p>查看(V)</p> <div class="block"></div> <p>编辑(E)</p> <div class="block"></div> <p>帮助(H)</p> </div> <div id="frame"><img src="/static/imghw/default1.png" data-src="Image/frame.png" class="lazy" alt="HTML布局之计算器(div+css)_html/css_WEB-ITnose" ></div> <!-- 下面是按键 --> <div id="button"> <div class="smallbutton"><p>MC</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>MR</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>MS</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>M+</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>M-</p></div> <div class="smallbutton"><p>←</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>CE</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>C</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>±</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>√</p></div> <div class="smallbutton"><p>7</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>8</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>9</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>/</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>%</p></div> <div class="smallbutton"><p>4</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>5</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>6</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>*</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>1/x</p></div> <div class="smallbutton"><p>1</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>2</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>3</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>-</p></div> <div class="buttonblock"></div> <div class="bigbuttonY"><p>=</p></div> <div class="bigbuttonX"><p>0</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>.</p></div> <div class="buttonblock"></div> <div class="smallbutton"><p>+</p></div> </div> </div> </div>
CSS代码:
@CHARSET "UTF-8";#container{ position: absolute; top: 50%; left: 50%; margin: -161px -114px; width: 228px; height: 322px; border: 1px black solid; background: #e6e6fa; }#title{ width: 100%; height: 30px; background: #e6e6fa;}#image{ float: left; width: 14px; height: 17px; margin-top: 6px; margin-left: 10px;}#word{ margin-top: -8px; !important; float: left; width: 60px; height: 20px;}#word p{ font-size: 14px; text-align: center;}#select{ float: right; width: 107px; height: 15px; margin-right: 8px;}#min{ float: left; width: 30px; height: 18px;}#max{ float: left; width: 30px; height: 18px;}#off{ float: right; width: 47px; height: 18px;}#main{ width: 212px; height: 284px; margin-left: 8px; overflow: hidden;}#menu{ float: left; width: 212px; height: 20px; background: #dcdcdc;}#menu p{ float: left; font-size: 15px; margin-top: 1px; margin-left: 5px;}.block{ float: left; width: 15px; height: 20px;}#frame{ float: left; width: 190px; height: 48px; margin-top: 10px; margin-left: 3px;}#button{ float: left; width: 190px; height: 180px; margin-left: 11px;}.smallbutton{ float: left; width: 34px; height: 25px; margin-top: 5px; background: #dcdcdc}.bigbuttonY{ float: right; width: 34px; height: 55px; background: #dcdcdc; margin-top: 5px;}.bigbuttonX{ float: left; width: 73px; height: 25px; background: #dcdcdc; margin-top: 5px;}.buttonblock{ float: left; width: 5px; height: 25px;}#button p{ text-align: center; margin-top: 3px;}
运行结果:

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











HTML은 간단하고 배우기 쉽고 결과를 빠르게 볼 수 있기 때문에 초보자에게 적합합니다. 1) HTML의 학습 곡선은 매끄럽고 시작하기 쉽습니다. 2) 기본 태그를 마스터하여 웹 페이지를 만들기 시작하십시오. 3) 유연성이 높고 CSS 및 JavaScript와 함께 사용할 수 있습니다. 4) 풍부한 학습 리소스와 현대 도구는 학습 과정을 지원합니다.

이 기사는 HTML & lt; Progress & Gt에 대해 설명합니다. 요소, 그 목적, 스타일 및 & lt; meter & gt의 차이; 요소. 주요 초점은 & lt; progress & gt; 작업 완료 및 & lt; meter & gt; Stati의 경우

HTML은 웹 구조를 정의하고 CSS는 스타일과 레이아웃을 담당하며 JavaScript는 동적 상호 작용을 제공합니다. 세 사람은 웹 개발에서 의무를 수행하고 화려한 웹 사이트를 공동으로 구축합니다.

이 기사는 HTML & LT; Datalist & GT에 대해 논의합니다. 자동 완성 제안을 제공하고, 사용자 경험을 향상시키고, 오류를 줄임으로써 양식을 향상시키는 요소. 문자 수 : 159

이 기사는 HTML & lt; meter & gt에 대해 설명합니다. 범위 내에 스칼라 또는 분수 값을 표시하는 데 사용되는 요소 및 웹 개발의 일반적인 응용 프로그램. & lt; meter & gt; & lt; Progress & Gt; 그리고 Ex

anexampleStartingtaginhtmlis, whithbeginsaparagraph.startingtagsareessentialinhtmlastheyinitiate rements, definetheirtypes, andarecrucialforstructurituringwebpages 및 smanstlingthedom.

WebDevelopmentReliesonHtml, CSS 및 JavaScript : 1) HtmlStructuresContent, 2) CSSSTYLESIT, 및 3) JAVASCRIPTADDSINGINTERACTIVITY, BASISOFMODERNWEBEXPERIENCES를 형성합니다.

GiteEpages 정적 웹 사이트 배포 실패 : 404 오류 문제 해결 및 해결시 Gitee ...
