If you are a webmaster like me, and always wondered how to check the source of your web pages via your iPad, search no more: the folks at RavelRumba put together a nice “bookmarklet” that will allow you to have access to the source of the page you are looking at, simply by using a bookmark.

To get it to work, simply follow these steps:

  1. Go to this page, and copy the bookmarklet (tap for more than 1 second, hit “Select All” then “Copy”).
  2. Create a bookmark via the “Add Bookmark” function in Safari (the plus sign next to the address bar). Don’t worry about the actual page you are bookmarking, it does not matter.
  3. Open the “Bookmark Bar” (the icon that looks like a book), tap “Edit” to edit the bookmark you just created. Replace the bookmark name with something friendly like “Check Source”, and delete the address that was initially bookmarked. Replace it with the code you just copied (long tap, then “Paste”).
  4. Save the bookmark.

And voila, your iPad will now display the source of the page you are looking at, every time you use the “Check Source” bookmark. Kudos to RavelRumba for this simple yet extremely useful feature.

核心内容就是把下面的代码保存到书签网址里面:

javascript:(function(){var a=window.open('about:blank').document;a.write('<!DOCTYPE html><html><head><title>Source of '+location.href+'</title><meta name="viewport" content="width=device-width" /></head><body></body></html>');a.close();var b=a.body.appendChild(a.createElement('pre'));b.style.overflow='auto';b.style.whiteSpace='pre-wrap';b.appendChild(a.createTextNode(document.documentElement.innerHTML))})();

如果想查看当前网页的代码,就直接点击这个书签。

来源:   http://www.padgadget.com/2010/05/15/ipad-quick-tip-view-page-source-in-ipad-safari/

查看ipad网页代码 iPad Quick Tip – View Page Source In iPad Safari相关推荐

  1. 手机firebug查看网页代码 How to View Website Source Codes on iPad / iPhone

    You're using your iPad to browse the Web and you're curious to view the source of a webpage but don' ...

  2. 计算机ipad手机组成,如何为自适应手机,计算机和iPad制作网页的摘要

    2015年,越来越多的移动互联网用户超过了PC端. 随着2G,3G,4G,免费WIFI和无线基站的不断普及,越来越多的人正在使用手机访问Internet. 移动设备已经超过台式设备,成为访问Inter ...

  3. 使用iPad阅读代码

    使用iPad阅读代码 主要使用如下工具: CodeAnywhere Github CodeAnywhere 在appstore下载CodeAnywhere应用: 在CodeAnywhere网页版添加G ...

  4. iphone转通用,xib里面的view怎么改成ipad大小?

    iphone转通用,xib里面的view怎么改成ipad大小? iphone转通用,xib里面的view怎么改成ipad大小?我用iphone的xib复制了一份改的,xib的view的宽高都是灰的,不 ...

  5. 敲代码时如何快速移动光标_HTML网页代码大全

    HTML网页代码大全 1)贴图:>img src="图片地址"< 2)加入连接:>a href="所要连接的相关地址"/a< 1)贴图: ...

  6. ipad iphone开发_如何强制重启任何iPhone或iPad

    ipad iphone开发 Khamosh Pathak Khamosh Pathak Force Restarting an iPhone or iPad works as a quick fix ...

  7. 网页代码常用小技巧!(2)

    网页代码常用小技巧!(2) [转] 41.变换网页的鼠标光标 〈BODY style=CURSOR: url(http://203.73.125.205/~liangmi2/farmfrog01.cu ...

  8. 完整HTML实例网页代码(4)

    上接完整HTML实例网页代码(3)的js格式代码 3>新建一个名为swiper.min.js的动画格式文件 代码:/**  * Swiper 4.5.0  * Most modern mobil ...

  9. python 批量下载 代码_Python + Selenium +Chrome 批量下载网页代码修改

    Python + Selenium +Chrome 批量下载网页代码修改 主要修改以下代码可以调用 本地的 user-agent.txt 和 cookie.txt 来达到在登陆状态下 批量打开并下载网 ...

最新文章

  1. 使用GetProcAddress获取ZwUnmapViewOfSection函数指针
  2. 在Android Native层中创建Java虚拟机实例
  3. Linux awk命令详解??????????(研究)
  4. 实现div里的img图片水平垂直居中
  5. javafx如何带菜单_JavaFX技巧30:带有DropShadow的ScrollPane
  6. java 加密解密编程,java 加密解密容易实现
  7. 八皇后时间复杂度_【算法打卡】N皇后
  8. oracle union all 特别慢_值得收藏的Oracle数据库性能优化
  9. java的printwriter_Java PrintWriter错误
  10. Hibernate使用小札
  11. php ckeditor 使用教程,织梦实现使用默认编辑器ckeditor上传视频功能( 详细)
  12. android判断某文件下是否you_Android_判断文件是否存在并创建代码
  13. 图片的alt(替换文本)属性描述
  14. Web视频播放总结,avi、swf、兼容IE6/7/8
  15. 世界排名第一的免费开源CRM客户关系管理系统介绍
  16. 短视频剪辑怎么做?4步教你快速入门
  17. 基于 Verilog 的经典数字电路设计(10)三态门
  18. 读取csv(excel类相关文件)常见bug,及解决办法统计
  19. 【CityEngine教程文档】---01 基础教程
  20. 二、Contiki移植

热门文章

  1. SAP MM模块-实施顾问岗位-面试手册-项目管理经验面试清单-英文
  2. POCO C++ Libraies介绍及常见用法
  3. oracle 朱志辉_DB2设计、管理与性能优化艺术
  4. python函数执行shell_6方法,python中执行shell命令
  5. BiSeNet V2论文及源码
  6. linux交叉编译+驱动,请教驱动程序交叉编译问题(初学)
  7. C++:VS2019遇到C1083 无法打开包括文件: “opencv2/opencv.hpp”: No such file or directory
  8. 立体视觉–stereo correspondence(双目立体匹配)
  9. z01、z02.....怎么解压缩
  10. ROS学习—opencv使用之图片传输