5 ways to interact with JavaScript and CSS that you don't necessarily know
10/08. 2014
As the browser continues to upgrade, the boundaries between CSS and JavaScript become blurred. Originally they were responsible for completely
1, in the real world, the use of external files will speed up the page display, because the external files will be cached by the browser. Improved reusability of script files and style sheets. (Do not need to be defined once per page)2, reduce the
CSS transparency under Firefox, Safari, Chrome and Opera#myElement {opacity:. 7;}CSS transparency under IEIE is different from other browsers, and there are currently three different versions of IE is widely used, the transparency settings are
Original link: Add Rules to stylesheets with JavaScriptOriginal Date: 2014-09-04Translation Date: 2014-09-05Translators: AnchorNow there's a lot of JavaScript code in the Web app, and we've been looking for solutions that make them faster.
HTML DOM allows JavaScript to change the style of HTML elements.Change HTML StyleTo change the style of your HTML elements, use this syntax:document.getElementById (ID). style.property=New StyleExample 1The following example changes the style of the
How to highlight CSS bordersWhen designing a webpage, we often perform special processing on some border styles to highlight the effect. Today, I will explain how to make CSS borders shine.
There is a bright light around the input box, or the
Understanding of margin in CSS
Set the border sequence in margin to upper right bottom left
{margin:top right buttom right}
It is equivalent to
{ margin-top: 20px; margin-right: 30px; margin-bottom: 30px; margin-left: 20px; }The omitted
Where can I find beautiful pages? -CSS
Where does a beautiful page come from?CSSClever style Configuration!
CSSFeatures: separation of webpage content and styles
Select the content marked by the selector in Html to display the content according to
CSS border and border, CSS Border border
CSS border and border
1. CSS border attributesThe CSS border attribute allows you to specify the style and color of an element border.1.1. Border StyleBorder style attribute specifies the border to be
Summary of common front-end interview questions and common interview questions
I. Front-end development interview
1. HTML & CSS
Basic Web Standard understanding, browser kernel differences, compatibility, hack, and CSS skills: layout, box model,
[CSS] use pseudo elements to implement some special images from baiduIn css, there are four pseudo elements: first-line, first-letter, before, and after. The first two selected are the first text and the first letter in the target element. You can
CSS page layout basics 3 -- element floating1.Float)It is one of the main functions used in modern CSS-based Web design. It can be used to create complex Web page la S and create navigation toolbar from unordered list, instead of using a table, you
XHTML basic syntax rules
1. A webpage is also an XHTML document composed of elements. The element defines the structure of text and graphics in the XHTML document. The extension name of the xhtmldocument is usually .html#.htm.
2. The XHTML element
Parse html and use canvas for renderingWhen learning html5, canvas is used to parse and render html text, the supported tags include , , , , , and , and parse irregular html by referring to chrome. The code is thrown on my github (
Performance Comparison Between createElement and innerHtml
In js, there are roughly two ways to add html dynamically. One is to create a document. createElement method, and then add it using Element. appendChild or Element. innerHTML = sHTML method.
Background-size attribute in cssValue Type of background-size: one or two values, which can be pixel px, percentage %, auto, or specific value cover or contain.Background-size can be set to 2 values. One value is required and the other value is
CSS Box ModelThe box model is an important concept in CSS. It is the cornerstone of the CSS visual formatting system. The box model can be used for element locating and webpage layout. According to the CSS box model, each element (whether embedded
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.