In recent years, with the popularity of mobile phones and pad, more and more users choose to use mobile clients to access the site, and in order to obtain a better user experience, it is necessary to display the most suitable match for different devices, this is the popular "responsive web Design" in recent years.Responsive web Design is a pure front-end technology JS, CSS and other implementations for different devices to access the same URL to see different layouts, is the page content is more
the following, such as: www.test.com/list/98/, for such a url,pc directly such access, for mobile, need to through m.test.com/list/98/can show a better effect.Then, you can use the regular to deal with, when the mobile access, we replace the http://www with http://m, and then update the page to see the page on the mobile side of the effect of rendering. The specific code is as follows:(function(){var URL= Location. href;Replace www.test.com with your
The tp framework development website has a PC version and a mobile version. how to automatically identify visitor devices? then, in different versions, my images seem to have a very short segment of Baidu code. but now I can find it again. don't go out. please tell us the simplest way. tp framework development websites have PC and mobile versions.
In my image,
5 ways to test mobile websites and simulate mobile browsers on your PC
Source: Internet anonymous time: 03-19 10:14:54 "Big Small"
Recently the company to develop the mobile version of the website, let me prepare to prepare knowledge, say I developed mobile site experience is really not much, the most tragic thing is my phone is a classic Nokia, and the company is not to be equipped with mobile phones, wh
This article mainly introduces the code for automatically redirecting from a pc website to a mobile website through two mobile phones. For more information, see 4G, the official pc and mobile websites coexist. How can someone else access your pc-side official website and directly jump to a mobile-side website? Look at
addition to the hostname part, followed by the following, such as: www.test.com/list/98/, for such a url,pc directly such access, for mobile, need to through m.test.com/list/98/can show a better effect.Then, you can use the regular to handle, when the mobile access, we replace "http://www" with "http://m" (Colon is the English colon), and then update the page to see the page on the mobile side of the effect of rendering. The specific code is as follo
very ah. : http://developer.android.com/sdk/index.html 2.bluestacks This is also a simulator, can self-search, I installed the computer will die, may be my Computer configuration can not, see the introduction or good. Five, online testing Online can only test the visual effects of the interface, can not be debugged, but also very good. 1.Mobile emulator* Very good, fast, very concise interface, support a variety of platforms. http://emulator.mobilewebsitesubmit.com/ 2.opera Mini Simulator Req
variety of platforms.http://emulator.mobilewebsitesubmit.com/2.opera Mini SimulatorRequires Java environment support, a single platform, opera produced, fast.Http://www.opera.com/zh-cn/developer/opera-mini-simulator3.webpage MobileTo tell the truth did not get out for a long while, greatly despise the next bar, but can test the platform is comprehensive.Http://www.webpagetest.org/mobileVi. SummaryThe above listed a variety of methods, each has pros and cons, I hope you choose the right way for
3 methods are relatively simple, add the following JS code in the header of the page:
For simply jumping directly from www.maslinkcom to M.maslink.com, this method is only available from the home page:
2. If the site in addition to the home section, followed by the following, such as: www.maslink.com/list/98/, for such a url,pc directly such access, for the mobile side, only need to through the m.maslink.com/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.