{"id":194375,"student_id":12205,"content":"{\"html\":\"\",\"css\":\"body {\\n background-color: black;\\n text-align: center;\\n padding: 100px;\\n\\n}\\n\\n#app {\\n width: 300px;\\n height: 400px;\\n /*可使margin自動抓一半,但需要有設定此元件大小*/\\n margin: auto;\\n}\\n\\np {\\n color: #fff;\\n text-align: right;\\n font-size: 40px;\\n \\n height: 60px;\\n padding: 5px;\\n margin: 5px;\\n}\\n\\nbutton {\\n /* 一顆按鈕:寬70px + 邊寬5px = 75px */\\n /* 一排按鈕:75px * 4 = 300px */\\n width: 70px;\\n height: 70px;\\n\\n border-width: 5px;\\n border-radius: 50%;\\n border-color: black;\\n\\n color: #fff;\\n font-size: 20px;\\n\\n /* 去除點擊時外圍的藍色框框,與border不同處於outline,border並不佔空間 */\\n outline: none;\\n}\\n\\n.bg-orange {\\n background-color: orange;\\n}\\n.bg-light {\\n background-color: #777;\\n}\\n.bg-gray {\\n background-color: #333;\\n}\\n\\n/* 以上為預設程式碼 */\\n\\n\\nbutton:active{\\n transform: scale(0.9, 0.9);\\n\\n}\\n\\n/* .bg-orange:hover {#777\\n background-color: #FFDAB9;\\n} */\\n\\n\\n/* .bg-light:hover {\\n background-color: #aaa;\\n} */\\n\\n\\n/* .bg-gray:hover {\\n background-color: #666;\\n} */\\n\",\"js\":\"\\n$('button').click(clicked)\\nfunction clicked() {\\n //將點擊的按鈕資料存到變數\\n var char = $(this).text();\\n // console.log(char);\\n\\n var result;\\n var screen_val = $('p').text();\\n\\n if (char == 'C') {\\n result = '';\\n } else if (char == 'del') {\\n result = screen_val.slice(0, screen_val.length - 1);\\n }\\n else if (char == '=') {\\n try {\\n result = eval(screen_val);\\n } catch (e) {\\n $('p').text('Error');\\n alert(e)\\n }\\n } else {\\n result = screen_val + char;\\n }\\n\\n\\n $('p').text(result);\\n}\"}","created_at":"2020-10-02T14:21:00.208+08:00","updated_at":"2020-10-02T14:21:46.723+08:00","name":"ios計算機 實作檔","language":"web","screenshot":{"url":null},"parent_id":191864,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":31,"hashid":"zpesmmvm","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦