This article is an example of how thinkphp judge a visitor as a mobile or PC-side. Share to everyone for your reference. The implementation methods are as follows:
First, the question:
Recently ready to do a small upgrade of their own website, so that users in the mobile phone two-dimensional code scan display for the phone to show the template "I use is ThinkPHP3.0", the code is reference to others
Second, the realization method:
Here first the g
This code is placed inside the code of the PC template.
This code is in the mobile website template
Ps:js to judge the mobile end and PC-side jump code
var browser_class = navigator.useragent;
var browser_class_name1 = Browser_class.match ("Mobile");
var browser_class_name2 = Browser_class.match ("mobile");
var location_url = window.location.href;
if (browser_class_na
May 16, Baidu Integrated extension system will be on May 18 (this Sunday) official online, enterprise customers in the PC and mobile end of the promotion will be integrated into a unified management platform.
It is understood that Baidu integrated search and promotion system will be a combination of PC search and mobile search promotion, change two sets of promotional programs for a set of programs, simpli
One-click Root to open the Intelligent control Tour
First, start with the Android smart machine to get root permissions. Root is the only superuser in the system that has the highest privileges in the system to start or remove a program. That's why a lot of users are trying to think of the root phone, and only if you get root, will the smart machine become incredibly powerful under your control.
In the past, the smart machine root is a big topic, the content of the introduction will definitely
pc/104 bus brief
pc/104 is a specially designed for embedded Control-defined industrial control bus, is a derivative product of PC bus in embedded applications, a stack-type structure, widely popular in the world, is defined by IEEE Association as ieee-p996.1. We know that ieee-p996 is
PC-Lint software usage
1. installation and configuration
PC-Lint software is cost-effective, easy to learn, easy to promote and solidify into the software development and testing process, so it has been widely used in the world. PC-Lint is easy to use. You can use the command line method. For example, lint-NT-u STD. LNT test1.c test2.c test3.c can also use mak
I will use the Windows system device as a PC, after all, blog for Chinese users, most of the home device or use of Windows system
The principle is to determine the user AGENT submitted by the browser
The code is as follows
Copy Code
Get the user AGENT$agent = Strtolower ($_server[' http_user_agent ')); Analyze data$is _pc = (Strpos ($agent, ' Windows NT '))? True:false;$is _iphone = (Strpos ($agent, ' iphone '))? True:fal
1. Click the Start menu, and then expand the Tablet PC Input Panel option in the "Tablet PC" option in the attachment.
2, in the Open Input Panel window, you can drag the mouse handwriting text;
3, then click on the top of the "tool" select "option" command;
4, this time will pop up a dialog box, switch to the "Handwriting" tab, and then click the "Appearance" area of "ink thickness"
Following the announcement of hardware requirements for the mobile version of Windows 10, Microsoft now publishes hardware requirements for PC version of Windows 10.
According to the Official charts, the Windows PC 32-bit minimum needs 1GB memory, 16GB hard drive, while the 64-bit version of the minimum need 2GB memory and 20GB hard drive, in addition to the DX9 graphics card, the screen resolution must b
Cool Disk PC version is an innovative concept of the synchronization network disk, different from the other traditional network disk is the concept of "synchronization."
In other words, the user installed the cool disk client software, as long as the file or folder copy or paste into the cool disk synchronization directory, the software will be in the background batch of files synchronously transferred to the server. The cool disk
Do a PC-side web page, the design is 1920x1080. To display normal on a common screen (proportional to correct) 1280x720 1366x768 1440x900 1920x1080Several methods have been used1. Content in a screen display, the use of (content box) up and down around the center of the method, the content is absolutely in this content box positioning. In this way, the content is always in the middle and looks more normal in different size screens.2. Long, wide, left,
?? In view of the current domestic search engine still does not use Google, the author will seek Bing search to replace. In the process of using Bing, the author found that Bing's background image is really a conscience, very pleasing, so the author's mind has a thought: can I make a crawler, you could extract the Bing search background image and set as the Windows desktop computer? The Bing search page is as follows:?? So in a stormy afternoon, the author began his own journey of exploration. O
is, when html{font-size:62.5% is set, the root unit of this page is 10px, that is, any element whose 1rem is equal to "10px". Isn't it convenient. 5: Here are some advanced, VW VH VMS, in short, whether mobile or PC, the screen width is 100vw, screen height is 100vh, somewhat similar to 100%, but different from%, because the% units are relative to the parent, and both VW and VH are relative to the entire screen screen;6: Whereas VMs are a complement
This is only a small knowledge, but also on the internet to find, pretty good!
Dynamic to determine whether the browser is a PC or mobile end!
Very interesting!
The above is JS dynamic Judge pc and mobile browser data collation, follow-up continue to supplement the relevant information, thank you for your support of this site!
A scene:PC Direct-attached openwrt equipment, you can telnet through each other;But when both are connected to the router, the PC cannot telnet to the OPENWRT device, and the OPENWRT device can telnet to the PC. As shown in figure:Solution:You need to add port mappings to the OPENWRT system to map the Telnet service in the intranet. Modify/etc/config/firewall to increase:
Config redirect
option src
The length unit mainly has the following kinds of EM ex ch REM VW VH vm cm mm in pt pc px%, presumably can be divided into several "absolute units" and "relative units" and "percent units".
Absolute unit: px in cm mm
Relative unit: EM rem pt PC EX CH
Percent unit: VW VH VM%
The following mainly say a few commonly used units
PX: Absolute Unit, page by ex
Business Contact Manager (BCM) 2010 is a plug-in program in Outlook that has powerful contacts and customer management capabilities, and is actually a CRM for small businesses. The use of BCM can help us centralize the customer's information and establish and execute efficient sales activities, manage sales prospects throughout the sales process, and assist employees in providing after-sale service and tracking.
If you have a legitimate Office 2010 license and have your Office 2010 key ready, y
1. Resources view, the controls inside can be dragged and put in, and then double-click, will automatically generate a click event function in the. cpp file. (in the function can write the corresponding operation code)At the same time, there will be a mapping function in front of the Dlg.cpp file, and the corresponding function declaration will be generated automatically.2. The serial port icon needs to right click, add the control serial port variable3. Right-click on the project file to add a
Reference: http://blog.csdn.net/nseven/article/details/8288603Before using the default ubuntu12.04 default GCC compiled source code, the results when debugging with GDB appeared cannot find the bounds of the current ... The errorView the information on the Internet, probably because the GCC version should be used gcc4.4 now the Ubuntu version changes to try again.1. View GCC version and g++ versionGcc-vg++-V2. Installing GCC and g++ version 4.4sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multili
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.