() | | browser.versions.android () | | | browser.versions.iPhone () | | Browser.versions.iPad ()) {Alert (' mobile side ');}Before I used a detection client library feel very good, also recommended to everyone called device.js, we can googel or BaiduGitHub Warehouse Address: Https://github.com/matthewhudson/device.jsGetboundingclientrect () Get element positionIt returns an object that contains left, right, top, bottom four propertiesvar mydiv = document.getElementById (' mydiv ');var x = Mydiv
Scroll smoothly to the top of the pageHere's one of the most common implementations of jquery: Click a link to scroll smoothly to the top of the page. There's nothing new to say, but almost every developer can use it.$ ("a[href= ' #top ']"). Click (function() { $ ("HTML, Body"). Animate ({scrolltop:0}, "slow"); returnfalse; Replace HTML tagsjquery can be very easy to implement HTML tag substitution, which will bring us more new possibilities.$ (' Li '). ReplaceWith (function() { r
Automatically create catalogs (multilevel)
Calling the Sheljsl module is much simpler than using recursive creation
const=require('shelljs')const=require('fs')if (!fs.existsSync{ shell.mkdir('-p', dir)}Ejs use of custom functionsVersion: 2.6.1Installation:npm install ejsUsing a custom function in a template to process the demo of the dataConstEjs= require(' Ejs ')Ejs.delimiter = '%'//The Custom function returns the first-letter uppercase stringConstDef_func={ Capitalize(str){
set the Data-theme property to Z, for example:6. Apply Custom FontsWhen you build a web App with jquery Mobile, you want to use some special fonts, and you'll find that customizing fonts with @font-face is a pretty satisfying approach.7. Create a button with no text and only picturesSometimes, you might want to use a button with no text content that still has a button feature. To hide text on a button, set data-iconpos= "Notext", for example:8. Open a hyperlink without using the Ajax page trans
dreamweaver| Tutorials | Web pages
with pictures to beautify your pageThe page above is also too monotonous, of course, can not let everyone satisfied, now we come step-by-step to beautify our page. The easiest way to do this is to add a picture to your Web page. And to a large extent, people say that a beautiful web page, usually refers to the picture on the page beautiful.
Click on the button on the object panel, and then pop up the dialog box an
dreamweaver| Tutorial It's a good idea to define a new Web site before you start making a Web page to better manage site files using the Site window.
the method defined
method One:Select the last item in the Drop-down menu of the Site window define Sites, as shown below.
A new dialog box pops up, click the New button to define a Web site, and if you need to redefine the old site in the future, select the site you
dreamweaver| Tutorials | Web page
Use of tablesThe table is a very important element of the Web page, because the HTML itself does not provide more typesetting means, we often need to use tables to achieve the fine layout of the Web page. It can be said that the table is the most important one of the skills of Web page production, the use of the table is good or bad, directly reflects the level of web designers.
Click on the object panel to see the
dreamweaver| tutorial to make the page browsing faster, sometimes have to use Flash animation instead of GIF animation, but not all people have installed their plug-ins, a good site to solve this problem, generally give two versions, Flash version and HTML version, But we need to choose to enter that version, with the popularity of the internet is not all people know what is flash, what is HTML, this part of netizens how to choose? We can let your web
dreamweaver| Tutorial If you think it is too difficult to master the page element with a table, try using the layer (Layer) as a good thing. Click on the Property Panel button, the cursor will become a cross, drag on the editing window, you can create a layer, we can enter the layer of most of the page elements, such as pictures, text, and so on. The benefit of the layer is that it can be placed anywhere on the page, as shown below:
After selecti
dreamweaver| Tutorial
section II
I do not know if you have used this station's message is not, when you write the message to confirm, immediately pop-up a thank message box, is it very considerate? That's the topic I'm talking about today.-popup Message (Pop-up messages box)
I. Understanding the Popup mesage edit window
Press F8 in the DW edit box to pull up the Behaviors panel, click the popup message to immediately appear th
This article provides a detailed analysis of PHP security detection code snippets. For more information, see
The code is as follows:
/**
* Html conversion output (only Escape '"to keep Html running properly)* @ Param $ param
* @ Return string
*/
Function htmlEscape ($ param ){
Return trim (htmlspecialchars ($ param, ENT_QUOTES ));
}
/**
* Array or not (check whether there are values in the array at the same time)* @ Param $ params
* @ Return boo
These code snippets or programs, look smart, or quite practical, worth collecting
Reply content:Write code, do not test, do not need Beethoven (back multi-points) that year is to not use the endorsement of the computer Ah! (Serious face
This knowledge, is in the process of playing deeply engraved in the mind. Just like a little bit of gas is a small attack, shipped three is the air cannon, deep engraved in the mind AH (what I'm talking about
That
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.