仿Windows計算器(一)??界面部分_html/css_WEB-ITnose
Jun 24, 2016 pm 12:04 PM
先說一點題外話,博主畢業(yè)于2012年,一直從事開發(fā)事業(yè),主要的工作業(yè)績??把別人的代碼復(fù)制-粘貼-改變量。自己感覺進步不大,最近想跳槽,主要投簡歷的方向是前端,因為做為女生,對前端頁面比較感興趣,自我感覺達到了入門水平,但是被拒了好多次,這才意識到,所謂的入門,真的是太微不足道了,還是從基礎(chǔ)老老實實看起吧。
最近在看《JAVASCRIPT王者歸來》,一直看書,手有點癢,想寫點東西,又不知寫啥,只好自己寫寫書里的例子,仿WINDOWS的計算器功能,歡迎大家來指點。
好了,?嗦了這么多,就開始說正題。
首先的界面,很簡單,只是調(diào)了一下布局,樣式用的是默認樣式,直接上代碼。
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>仿Windows計算器</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="±"/>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>
?

Hei?e KI -Werkzeuge

Undress AI Tool
Ausziehbilder kostenlos

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Clothoff.io
KI-Kleiderentferner

Video Face Swap
Tauschen Sie Gesichter in jedem Video mühelos mit unserem v?llig kostenlosen KI-Gesichtstausch-Tool aus!

Hei?er Artikel

Hei?e Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

ToreSolvenetworkConnectivityISSUSINWindows, ResetthetCP/IpStackByFirstopeningCommandpromptasadministrator, ThenRunningTheCommandNetHINTIPRESET, und endlich

Linux ist für alte Hardware geeignet, verfügt über eine hohe Sicherheit und ist anpassbar, hat jedoch eine schwache Softwarekompatibilit?t. Windows -Software ist reich und einfach zu bedienen, verfügt jedoch über eine hohe Ressourcenauslastung. 1. In Bezug auf die Leistung ist Linux leicht und effizient und für alte Ger?te geeignet. Windows hat hohe Hardwareanforderungen. 2. In Bezug auf die Software hat Windows eine gr??ere Kompatibilit?t, insbesondere professionelle Tools und Spiele. Linux muss Tools verwenden, um Software auszuführen. 3. In Bezug auf die Sicherheit ist das Linux -Berechtigungsmanagement strenger und Aktualisierungen sind bequem. Obwohl Windows geschützt ist, ist es immer noch anf?llig für Angriffe. 4. In Bezug auf die Nutzungsschwierigkeit ist die Linux -Lernkurve steil; Der Windows -Betrieb ist intuitiv. W?hlen Sie gem?? den Anforderungen: W?hlen Sie Linux mit Leistung und Sicherheit aus und w?hlen Sie Windows mit Kompatibilit?t und Benutzerfreundlichkeit aus.

Hyper-vcanbeenabledonwindowSpro, Enterprise, oreducationeditionsByMeetingStemRequirementsincluding64-Bitcpuwithslat, vmmonitormodeextsion, bios/uefivirtualisation undatleast4gbram.2.Enablehyper-Vviawindowsfathesbyper-Vvi-Vvi-Vvi-Vviagi-Windows-Byper-Vvi-Vvi-Vvi-Windows-Byper-

Klicken Sie mit der rechten Maustaste von "DisplaysSettings" toopenthedisplayoptions.2.Wan "Display", klicken Sie auf "DisplayResolution" DropdownandChooSearesolution, vorzugsweise therekmittedoneforBestimageQuality.3.Confirmthechne

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

OpendevicemanagerBypressionwin XandelectingorsearchingInthestartMenu.2.LocateTheProblematicDevice-SuchasDisplayAdapters, SoundvideoandgameController, NetworkAdapters, OrinputDevices-Right-ClickitandSelectProproperties

VerififyThewindowsisoisfrommicrosoftandRecreatetheBootableUsbusingthemediacreationToolorRufuswithCorrectSettings; 2.SeSurehardwaremeetsRequeements, testramandstorageHealth und Disconnectunningaryperpherals;

WindowsdoesNotnativsupportperManentaVeringProcessoraffinityforApplications, butyoucanachiefepersistAntusingScriptsorthird-partytools.1.ProcessoraffinityBindsaprocessTospecificcpucores, Verbesserungsperformmalsmalmanagement, zwar.fusical
