metatag

Make content to scale and fit with PhoneGap (using viewport)

Deadly 提交于 2019-12-01 16:53:45
I am trying to adapt and port an old project to PhoneGap. So far, the project works properly under Android browsers but it doesn't with PhoneGap since it doesn't adapt the content to fit the whole screen. It always leave a blank space and that's not what I would want. PhoneGap doesn't seem to pay attention to my viewport property in the metatag I am using. I have been doing some tests to find out the problem without any kind of result. For example, the following test just contains two files: index.html and config.xml It contains a DIV that is 276 pixels width and I would want PhoneGap to make

Make content to scale and fit with PhoneGap (using viewport)

。_饼干妹妹 提交于 2019-12-01 15:31:29
问题 I am trying to adapt and port an old project to PhoneGap. So far, the project works properly under Android browsers but it doesn't with PhoneGap since it doesn't adapt the content to fit the whole screen. It always leave a blank space and that's not what I would want. PhoneGap doesn't seem to pay attention to my viewport property in the metatag I am using. I have been doing some tests to find out the problem without any kind of result. For example, the following test just contains two files:

Prefer charset declaration in HTML meta tag or HTTP header?

梦想与她 提交于 2019-11-30 08:37:33
问题 I'm parsing a lot of sites. All works fine, I'm reading also charset declarations to convert encodings. Now I've a problem with http://celleheute.de/sonntagsfuhrung-3/. The HTML meta tag says, that the content is encoded as ISO-8859-2, but the HTTP header says, it's UTF-8. And really, the content is UTF encoded, so when my parser tries to convert the content to ISO it will break some chars. Now my question is, which declaration should I prefer? Should I ignore meta tags, when I can find the

Prefer charset declaration in HTML meta tag or HTTP header?

自古美人都是妖i 提交于 2019-11-29 07:21:38
I'm parsing a lot of sites. All works fine, I'm reading also charset declarations to convert encodings. Now I've a problem with http://celleheute.de/sonntagsfuhrung-3/ . The HTML meta tag says, that the content is encoded as ISO-8859-2, but the HTTP header says, it's UTF-8. And really, the content is UTF encoded, so when my parser tries to convert the content to ISO it will break some chars. Now my question is, which declaration should I prefer? Should I ignore meta tags, when I can find the declaration in HTTP header or vice versa? What will most web browsers do? Alohci To understand what

Display an article rating in Google search results

二次信任 提交于 2019-11-29 01:16:37
Im writing a review site where the community rates posts. I have noticed that Google can pick up on this ratings and display them in its search results. Does anyone know how this is achieved? An example is a review site like IGN, where in their screen shot below they have indicated their review has a rating of 9.3/10. How can I indicate to Google my own review rating? Maybe some sort of custom meta tag or something. Jordy You can do that with a Span class. Check Google's Structure Data guide for Review : A review is someone's evaluation of something. We support reviews and ratings for a wide

How to add meta tag in javascript

我是研究僧i 提交于 2019-11-27 07:14:36
I want to add <meta http-equiv="X-UA-Compatible" content="IE=edge"> for a particular page. But my pages are rendered inside one HTML tag. Only the content is changing on clicking different templates. So i cannot add the <meta> in <HEAD> section. Is there any way to add the <meta http-equiv="X-UA-Compatible" content="IE=edge"> using javascript ? You can add it: var meta = document.createElement('meta'); meta.httpEquiv = "X-UA-Compatible"; meta.content = "IE=edge"; document.getElementsByTagName('head')[0].appendChild(meta); ...but I wouldn't be surprised if by the time that ran, the browser had

How to add meta tag in javascript

我的梦境 提交于 2019-11-27 04:00:07
问题 I want to add <meta http-equiv="X-UA-Compatible" content="IE=edge"> for a particular page. But my pages are rendered inside one HTML tag. Only the content is changing on clicking different templates. So i cannot add the <meta> in <HEAD> section. Is there any way to add the <meta http-equiv="X-UA-Compatible" content="IE=edge"> using javascript ? 回答1: You can add it: var meta = document.createElement('meta'); meta.httpEquiv = "X-UA-Compatible"; meta.content = "IE=edge"; document