开发者

How to include CSS in website developed using PHP for mobile application

I want to know how we can include CSS file in a website build using PHP for mobile application.

I have a site which is build using HTML,PHP, and CSS. Now I have to make that site properly aligned in mobile phones. I already can view the content on mobile, but the css which I have included in the sit开发者_如何学运维e is not getting added, and so the text, font, everything is not properly visible on mobile. Infact in "page source", the css which is initially included cannot be seen. So is there any different way to include a css for mobile applications.

Can anyone help me with this.


Not sure what you are asking but you can add a specific style sheet for handheld devices by using the following in your html <head> tag.

<link rel="stylesheet" type="text/css" media="handheld" href="handheld.css" />

You can get more information on:

  • Browser Conformance
  • Designing for handheld
  • W3C media types


In general you include stylesheets into HTML like this:

<link rel="stylesheet" type="text/css" href="path/to/style.css"> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜