下载PDF文件下载PDF文件
X
要在电脑上做数学题?方法有很多,比如使用内置的计算器,或者自己用简单的HTML代码编写一个计算器。如果你选择第二种方法,首先得了解一些基础的HTML知识,然后将必要的代码复制到文本编辑器中,并以HTML为扩展名保存起来。之后用浏览器打开这个HTML文件,就能使用计算器了。你不仅可以在浏览器做数学题,还能学到基础的编码技巧,可谓一举两得!
步骤
- 将计算器的HTML代码粘贴到文档中。
- 在Mac电脑上,点击文档主体,同时按下“Command”和“V”键。粘贴代码后,你需要点击屏幕顶端的“格式”,选择“纯文本(Make Plain Text)”。[11]
- 在PC电脑上,点击文档主体,同时按下“Ctrl”和“V”键。
- 保存文件。如果是PC电脑,点击窗口左上方的“文件”按钮,点击“另存为”。如果是Mac,则从下拉菜单中点击“保存”。
- 将HTML扩展名添加到文件名。在“另存为”菜单中,输入文件名,并以“.html”作为后缀,然后点击“保存”。比如说,如果你想将文件命名为“我的计算器”,那就保存为“我的计算器.html”。广告
小提示
- 你可以将计算器嵌入网页。
- 你也可以用HTML样式改变计算器的外观。
广告
参考
- ↑ http://www.w3schools.com/html/html_basic.asp
- ↑ http://www.w3schools.com/html/html_head.asp
- ↑ http://www.w3schools.com/html/html_formatting.asp
- ↑ http://www.w3schools.com/tags/att_input_type.asp
- ↑ http://www.w3schools.com/tags/att_input_value.asp
- ↑ http://www.w3schools.com/tags/ref_eventattributes.asp
- ↑ http://www.w3schools.com/tags/tag_br.asp
- ↑ http://www.w3schools.com/html/html_forms.asp
- ↑ http://computers.tutsplus.com/tutorials/quick-tip-configure-textedit-for-coding-html--mac-44786
这篇文章对你有帮助吗?
⚠️ Disclaimer:
Content from Wiki How 中文 language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.
广告