[ruby on rails] adapt the screen size and load different pages or css
1. Load different pages
When the screen size is larger than 600, load index2 If the screen size is less than 600, load index1
$(function() {
//Determine screen width
var winWide = window.screen.width; //Get current screen resolution
alert(winWide);
var wideScreen = false;
if (winWide <=600) { //Re ...
Added by westexasman on Sun, 05 Sep 2021 08:35:11 +0300
HTML Basics - Summary of common tags 1
HTML Basics - Summary of common tags 1
Title Tag <h1>...</h1>
......
<h6>...</h6>
Display text in a prominent manner on the page characteristic:
The font size changes, h1 is the largest and h6 is the smallestThe fonts are boldExclusive rowVertical distance from top to bottom Properties: align sets the horizontal a ...
Added by bluegreen1 on Sun, 05 Sep 2021 06:18:06 +0300
Picture magnifying glass function of an East commodity detail page
First, let's look at the effect of an East:
This case can be divided into three functional modules:
The mouse passes through the small picture box, the mask layer and the large picture box are displayed, and leaves the hidden mask layer and the large picture box.The mask layer follows the mouse.Move the mask layer and the big picture follows ...
Added by curb on Sun, 05 Sep 2021 02:37:01 +0300
Mobile WEB development
Mobile WEB development
1, Mobile terminal Foundation
1. Browser status
(1) Common browser on PC
360, Google, Firefox, QQ, Baidu, Sogou, IE
(2) Common mobile browsers
UC, QQ, oppen Opera, baidu mobile, 360 security, Google, Sogou, cheetah, etc
Domestic UC, QQ, Baidu and other mobile browsers are modified cores based on Webkit. There is no ...
Added by aaron_mason on Sun, 05 Sep 2021 00:08:19 +0300
Bootstrap learning notes 2
This article records common tool classes.
record
Borders:
// Set border
<span class="border"></span>
<span class="border-top"></span>
<span class="border-right"></span>
<span class="border-bottom"></span>
<span class="border-left"></span>
// Remove border
<span class="border-0"& ...
Added by mrbaseball34 on Sat, 04 Sep 2021 07:55:21 +0300
html tags and CSS Styles
1, Continue to learn html tags
1.1 form labels
Login and registration input boxes are form labels The form tag has a child tag that is the input tag input is a unilateral label What are the main functions of form tag and input tag? It is used to submit data to other pages through the input input box
url: is a web address, also known as ...
Added by Henaro on Fri, 03 Sep 2021 21:28:39 +0300