How to Match WCSS Cascading Style Sheets to Different User Agents?
We copy and paste it here for your convenience. • The WAP browser requests an XHTML MP page from the server. • The server receives the request and delivers the XHTML MP document to the WAP browser. • The WAP browser receives the XHTML MP document and finds that it contains a tag that references to an external cascading style sheet. • The WAP browser sends another request to the server in order to obtain the WAP CSS cascading style sheet. • The server receives the request and delivers the WAP CSS cascading style sheet to the WAP browser. • The WAP browser receives the WAP CSS file and displays the XHTML MP page according to the style information contained in the WAP CSS file. • The steps repeat when the user selects an anchor link or types a new URL in the WAP browser. As you can see from above, the server receives a HTTP request at step 2 and step 5. This means to match the appropriate WCSS cascading style sheet to a client browser, you can either: • (Way 1) Detect the user agen