×
Namespaces

Variants
Actions
(Difference between revisions)

2 Viewpoints In Html Code

From Nokia Developer Wiki
Jump to: navigation, search
r60600 (Talk | contribs)
(Created page with ''''1.Prefer percentage to numerical value''' Many elements in HTML page need define width and height,which usually is the numerical value.This will cause a problem that the elem…')
 
jimgilmour1 (Talk | contribs)
m (minor spelling)
Line 10: Line 10:
 
Image is more beautiful than text in some cases,but it cost much resource of the mobile even if today the mobile's performance is better
 
Image is more beautiful than text in some cases,but it cost much resource of the mobile even if today the mobile's performance is better
 
than ever.And some user set the browser not displaying images for saving rate,which leads the images won't be loaded.So the user can't
 
than ever.And some user set the browser not displaying images for saving rate,which leads the images won't be loaded.So the user can't
operate with this confused screen.In order to code a efficent UI,it had better use texts instead of images especially in the action button,which
+
operate with this confused screen.In order to code a efficient UI,it had better use texts instead of images especially in the action button,which
 
guarantees the base demand.
 
guarantees the base demand.
  
 
[[Category:Web Technology]][[Category:Browsing]][[Category:Web Runtime (WRT)]]
 
[[Category:Web Technology]][[Category:Browsing]][[Category:Web Runtime (WRT)]]

Revision as of 10:31, 30 June 2010

1.Prefer percentage to numerical value

Many elements in HTML page need define width and height,which usually is the numerical value.This will cause a problem that the element displays correctly in mobile with larger size screen,but in smaller screen it will be beyond the display area.To avoid the problem,percentage is recommended,which let the page calculate the fitted size for the current screen of the mobile.But the simple elements,such as text,is unnecessary used as this way.

2.Prefer text to image

Image is more beautiful than text in some cases,but it cost much resource of the mobile even if today the mobile's performance is better than ever.And some user set the browser not displaying images for saving rate,which leads the images won't be loaded.So the user can't operate with this confused screen.In order to code a efficient UI,it had better use texts instead of images especially in the action button,which guarantees the base demand.

50 page views in the last 30 days.
×