In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge points about how to set html to prohibit shrinking. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
In html, you can use the user-scalabel attribute setting to disable zooming, simply by adding a "user-scalabel=0" style to the mate element. The user-scalable property controls whether the user can zoom the page through gestures.
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
Html5 allows users to zoom the page by default. If you need to disable zooming, we need to set user-scalabel=0 as follows:
User-scalable controls whether the user can zoom the page through gestures. The default value of this property is yes, which can be scaled, or you can set this value to no to indicate that users are not allowed to zoom the page.
Extended data:
Elements can provide meta-information (meta-information) about the page, such as descriptions and keywords for search engines and update frequency.
The tag is located at the head of the document and does not contain anything. The attribute of the tag defines the name / value pair associated with the document.
Note: the tag is always inside the head element.
Note: metadata is always passed in pairs in the form of names / values.
Name attribute
The name property provides the name in the name / value pair. Neither the HTML nor XHTML tags specify any predefined names. In general, you are free to use names that are meaningful to yourself and to the readers of the source document.
"keywords" is a frequently used name. It defines a set of keywords for the document. Some search engines will use these keywords to classify documents when they encounter these keywords.
Meta tags like this may help you enter the index of a search engine:
If no name attribute is provided, the name in the name / value pair takes the value of the http-equiv attribute.
Http-equiv attribute
The http-equiv attribute provides a name for the name / value pair. It instructs the server to include name / value pairs in the header of the MIME document to be sent to the browser before sending the actual document.
When the server sends a document to the browser, many name / value pairs are sent first. Although some servers send many of these name / value pairs, all servers must send at least one: content-type:text/html. This will tell the browser to be ready to accept an HTML document.
When using a tag with a http-equiv attribute, the server adds a name / value pair to the content header sent to the browser. For example, add:
So the header sent to the browser should contain:
Content-type: text/html
Charset:iso-8859-1
Expires:31 Dec 2008
Of course, these additional header fields are meaningful only if the browser can accept them and use them in an appropriate manner.
Content attribute
The content property provides the value in the name / value pair. The value can be any valid string. The content property is always used with the name property or the http-equiv property.
Scheme attribute
The scheme attribute is used to specify the scheme that you want to use to translate property values. This scenario should be defined in the profile file specified by the tag's profile attribute.
These are all the contents of the article "how to set html to prohibit shrinking". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.