找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1243|回复: 0

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

[复制链接]
发表于 2011-2-14 16:19 | 显示全部楼层 |阅读模式
今天在precentral看到有关WAP 网页中的文本自动换行技巧* |& Y5 q5 X' J
大致意思:在wap网页中,press+hold网页中的任一连接(link),则本网页将自动调整为webos的最佳浏览方式。只是每页都得这操作。
3 o  B3 w4 Q, H+ U2 ]7 h% q+ h, F6 Y! }
原文:: |2 \# V4 w( y9 @( v+ e
* ~1 j: N- `* l; V4 W
Auto-wrap text in some WAP-based browser sites
+ b9 W2 s7 R: D- X) bAdam Marks | Tue, 08 Feb 2011 10:33 | view comments »/ t* l, K$ O2 ], ~0 P/ T/ s# ]0 Y
/ {  y9 A& c* D$ Y9 q
Before 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.
# {! ~7 P0 Q& @1 N
* ?! r+ B* p( e1 G8 p% r( |/ J6 rhttp://www.precentral.net/auto-w ... based-browser-sites
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-24 00:10 , Processed in 0.285618 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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