找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1256|回复: 0

[教程] WAP 网页中的文本自动换行技巧

[复制链接]
发表于 2011-2-14 16:19 | 显示全部楼层 |阅读模式
今天在precentral看到有关WAP 网页中的文本自动换行技巧  d% r7 j5 E2 e$ F  }8 E( T
大致意思:在wap网页中,press+hold网页中的任一连接(link),则本网页将自动调整为webos的最佳浏览方式。只是每页都得这操作。2 o: o! {; U' `7 v7 O1 q
6 a4 Z% a; V* V  b! v: f
原文:
8 s7 M0 o' w1 e2 e+ _- g3 m/ y7 Y$ [4 p# H7 m
Auto-wrap text in some WAP-based browser sites
" Z; E, |! T% o* [  x$ @) n7 FAdam Marks | Tue, 08 Feb 2011 10:33 | view comments »
$ c! [& q, d$ l( B- Z' q' y% a
% B: y/ a6 e& O5 J4 cBefore mobile phones had web browsers that could display websites in a similar fashion to a desktop computer, many mobile websites were built for WAP (Wireless Application Protocol) browsers that were mainly text-based sites with minimal amounts of graphics. Some of these sites are still around and typically do not look very good when viewing on webOS's webkit browser. However, while it's not clear if this is a feature or a bug, there is a way to cause some of these sites to wrap their text based on the resolution of your device. Using http://m.dailyrecord.com as an example, you can see that when the page first loads, the text is really small and hard to read without zooming in. However, if you press and hold on any link (this is important, you must find a web link), the page will re-wrap to read better. You may still need to do a quick double-tap to zoom in, but this should make reading on these sites a more enjoyable experience. Unfortunately, you will have to redo this press-and-hold on a link on every page, and this is not guaranteed to work on every WAP site there is, but at least it's something.
0 F" y$ D8 s. i$ S( S1 ~: }" V- I- H/ o4 L
http://www.precentral.net/auto-w ... based-browser-sites
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-12-22 16:14 , Processed in 0.277644 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表