国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Web Front-end HTML Tutorial Imitation Windows calculator (1)??Interface part_html/css_WEB-ITnose

Imitation Windows calculator (1)??Interface part_html/css_WEB-ITnose

Jun 24, 2016 pm 12:04 PM
windows interface calculator

Let me digress first. The blogger graduated in 2012 and has been engaged in development career. His main work performance is to copy-paste-change other people's code. I feel that I have not made much progress, and I want to change jobs recently. The main direction of submitting my resume is front-end, because as a girl, I am more interested in front-end pages. I feel that I have reached the entry level, but I have been rejected many times. Then I realized that the so-called Getting started is really too trivial, so let’s just start from the basics.

I have been watching "JAVASCRIPT The Return of the King" recently. I have been reading and my hands are a little itchy. I want to write something, but I don’t know what to write. I have to write the examples in the book myself. It imitates the calculator function of WINDOWS. Welcome everyone. Come give me advice.

Okay, after so much rambling, let’s get to the point.

The first interface is very simple. I just adjusted the layout and used the default style. You can directly enter the code.

 1 <!doctype html> 2 <html> 3     <head> 4         <meta charset="utf-8" /> 5         <title>仿Windows計(jì)算器</title> 6         <style> 7             .content{} 8             div,input{margin:0;padding:0;} 9             .console, .btnBar{margin:3px auto;  }10             .console{ height:50px;border:1px solid #09F;width:190px;}11             .btnBar{width:195px; }12             input[type="button"] {width:34px; height:27px;margin-right:5px; display:block; float:left;}13             #equalBtn{height:56px; margin-top:-27px;}14             #n0Btn{width:73px;}15             input[type="text"]{display:block; border:none; height:25px; width:185px; font-size:20px;}16             #btmText{text-align:right;}17         </style>18     </head>19     <body>20         <div class="content">21             <div class="console">22             <input type="text" />23             <input type="text" id="btmText" value="0"/>24             25             </div>26             <div class="btnBar">27                 <input type="button" id="mcBtn" value="MC"/>28                 <input type="button" id="mrBtn" value="MR"/>29                 <input type="button" id="msBtn" value="MS"/>30                 <input type="button" id="mpBtn" value="M+"/>31                 <input type="button" id="mmBtn" value="M-"/>32                 <input type="button" id="bsBtn" value="←"/>33                 <input type="button" id="ceBtn" value="CE"/>34                 <input type="button" id="cBtn" value="C"/>35                 <input type="button" id="pmBtn" value="&plusmn;"/>36                 <input type="button" id="sqrtBtn" value="√"/>37                 <input type="button" id="n7Btn" value="7"/>38                 <input type="button" id="n8Btn" value="8"/>39                 <input type="button" id="n9Btn" value="9"/>40                 <input type="button" id="divideBtn" value="/"/>41                 <input type="button" id="percentBtn" value="%"/>42                 <input type="button" id="n4Btn" value="4"/>43                 <input type="button" id="n5Btn" value="5"/>44                 <input type="button" id="n6Btn" value="6"/>45                 <input type="button" id="multiplusBtn" value="*"/>46                 <input type="button" id="divided1Btn" value="1/x"/>47                 <input type="button" id="n1Btn" value="1"/>48                 <input type="button" id="n2Btn" value="2"/>49                 <input type="button" id="n3Btn" value="3"/>50                 <input type="button" id="minusBtn" value="-"/>51                 52                 <input type="button" id="n0Btn" value="0"/>53                 <input type="button" id="potBtn" value="."/>54                 <input type="button" id="plusBtn" value="+"/>55                 <input type="button" id="equalBtn" value="="/>56             </div>57         </div>58     </body>59 </html>

Statement of this Website
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

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

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.

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1502
276
How to reset the TCP/IP stack in Windows How to reset the TCP/IP stack in Windows Aug 02, 2025 pm 01:25 PM

ToresolvenetworkconnectivityissuesinWindows,resettheTCP/IPstackbyfirstopeningCommandPromptasAdministrator,thenrunningthecommandnetshintipreset,andfinallyrestartingyourcomputertoapplychanges;ifissuespersist,optionallyrunnetshwinsockresetandrebootagain

What are the main pros and cons of Linux vs. Windows? What are the main pros and cons of Linux vs. Windows? Aug 03, 2025 am 02:56 AM

Linux is suitable for old hardware, has high security and is customizable, but has weak software compatibility; Windows software is rich and easy to use, but has high resource utilization. 1. In terms of performance, Linux is lightweight and efficient, suitable for old devices; Windows has high hardware requirements. 2. In terms of software, Windows has wider compatibility, especially professional tools and games; Linux needs to use tools to run some software. 3. In terms of security, Linux permission management is stricter and updates are convenient; although Windows is protected, it is still vulnerable to attacks. 4. In terms of difficulty of use, the Linux learning curve is steep; Windows operation is intuitive. Choose according to requirements: choose Linux with performance and security, and choose Windows with compatibility and ease of use.

How to enable Hyper-V in Windows How to enable Hyper-V in Windows Aug 04, 2025 am 12:53 AM

Hyper-VcanbeenabledonWindowsPro,Enterprise,orEducationeditionsbymeetingsystemrequirementsincluding64-bitCPUwithSLAT,VMMonitorModeExtension,BIOS/UEFIvirtualizationenabled,andatleast4GBRAM.2.EnableHyper-VviaWindowsFeaturesbyopeningoptionalfeatures,chec

How to change screen resolution in Windows How to change screen resolution in Windows Aug 02, 2025 pm 03:08 PM

Right-clickthedesktopandselect"Displaysettings"toopenthedisplayoptions.2.Underthe"Display"section,clickthe"Displayresolution"dropdownandchoosearesolution,preferablytherecommendedoneforbestimagequality.3.Confirmthechanges

How to solve touchpad not working issues on Windows? How to solve touchpad not working issues on Windows? Aug 05, 2025 am 09:21 AM

Checkifthetouchpadisdisabledbyusingthefunctionkey(Fn F6/F9/F12),adedicatedtogglebutton,orensuringit’sturnedoninSettings>Devices>Touchpad,andunplugexternalmice.2.UpdateorreinstallthetouchpaddriverviaDeviceManagerbyselectingUpdatedriverorUninstal

How to roll back a driver update in Windows How to roll back a driver update in Windows Aug 03, 2025 am 11:10 AM

OpenDeviceManagerbypressingWin XandselectingitorsearchingintheStartmenu.2.Locatetheproblematicdevice—suchasDisplayadapters,Soundvideoandgamecontrollers,Networkadapters,orinputdevices—right-clickitandselectProperties.3.GototheDrivertabandclick“RollBac

How to troubleshoot a failed Windows installation How to troubleshoot a failed Windows installation Aug 02, 2025 pm 12:53 PM

VerifytheWindowsISOisfromMicrosoftandrecreatethebootableUSBusingtheMediaCreationToolorRufuswithcorrectsettings;2.Ensurehardwaremeetsrequirements,testRAMandstoragehealth,anddisconnectunnecessaryperipherals;3.ConfirmBIOS/UEFIsettingsmatchtheinstallatio

How to change the processor affinity for an application permanently in Windows How to change the processor affinity for an application permanently in Windows Aug 03, 2025 am 12:37 AM

Windowsdoesnotnativelysupportpermanentlysavingprocessoraffinityforapplications,butyoucanachievepersistentaffinityusingscriptsorthird-partytools.1.ProcessoraffinitybindsaprocesstospecificCPUcores,improvingperformanceorthermalmanagement,thoughWindowsre

See all articles