How to check the familiar compatibility of CSS? such as Inline-block which browser support? What is the href, title, and target of a tag? What is the difference between title and alt? How do I open a link in a new window? What does Display:none and Visibility:hidden do? What's the difference?
What role does Line-height have?
The Line-height property sets the distance (row height) between rows.
The commonly used values are:
Normal default. Set a reasonable line spacing.
Number to set the line spacing by multiplying the current font size.
Length sets the fixed line spacing.
Percent line spacing based on the current font size.
Inherit specifies that the value of the Line-height property should be inherited from the parent element.
How to check the familiar compatibility of CSS? such as Inline-block which browser support?
You can find it in the CSS Reference manual in W3school, or you can enter the properties you want to query in the can I use.
Inline-block is partially supported in Ie6,ie7,fire FOX 2 and is supported in all versions of the remaining mainstream browsers.
What is the href, title, and target of a tag? What is the difference between title and alt? How do I open a link in a new window?
Example: <a href= "http://baidu.com" title= "Baidu" target= "_blank" > This is a link </a>
The href attribute is used to specify the URL of the hyperlink target. Can be a relative or absolute URL for any valid document, including fragment identifiers and JavaScript code snippets.
Target specifies where to open the linked document, and when the target value is "_blank", you can open the link in a new window.
The Title property specifies additional information about the element. This information is typically displayed as a ToolTip text when the mouse is moved over the element, or as a global property.
The role of the art property is that the browser displays alternate text when the user cannot view the picture.
What are the roles of Display:none and Visibility:hidden? What's the difference?
Role: Display:none and Visible:hidden can hide an element on a webpage.
Difference:
Display:none---does not preserve its physical space for objects that are hidden, that is, the object disappears completely on the page and is not visible to the layman.
Visible:hidden---Make an object invisible on a Web page, but the space occupied by the object on the Web page does not change, and in layman's terms it is invisible but palpable.
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Related reading:
FAQ in HTML One
Brief introduction to the principle of clearfix in CSS