Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What details should be paid attention to when using Html?

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the use of Html should pay attention to what details of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe you will have something to gain after reading this Html to pay attention to what details of the article, let's take a look.

Html skills

1. A solution to prevent the box from leaking out

Overflow:hidden;float is not none;display:inline-block

Position is not static&relative

Add a border-top:1px solid transparernt to the parent class

two。 The vertical-align of the inline block is based on the centerline position of the parent element

One span and one input in a div are not aligned.

Set vertical-align:top; to input to align

3.button height is set to total height border default 2px

If height is set to 45px, then the content height is 41px; the total 4px is border.

If the total height is to be 45px

Then input height hight sets 43px border 1px solid gray

Button sets height, sets 45px

4. Content exceeds the overlay div bottom border

. text-line {

Height: 0.5emtextMusialign: center

Border-bottom: 1px solid red;}

.text-line > a {margin:0 10pxt paddinglv 0 10px

Background-color: white;}

5. How to add one between words, such as login? registration

Principle to register a border-left:1px solid gary;padding-left:1em

Div > span {border-left:2px solid grey

Padding-left: 1em; margin-left:-16px;}

Register

6. How to add a small triangle

The principle is only border and the required border display color

Position: absolute

Content: ""; top: 50% top right:-1em

Border:5px solid transparent

Border-top-color: red

7. Secondary navigation

Positioning is needed.

8.2D conversion

By default, all elements are referenced by their own center point.

To rotate, we can modify its by deforming the center point attribute

Reference point transform-origin: specific pixels / percentage

First parameter: horizontal direction

Second parameter: vertical direction

Transform-origin:0px 0px; the upper left corner is the center point

Upper left corner of transform-origin:left top;

9. Flip menu

.two _ nav {position:absolute

Width: 6emleft:-10px;}

.two _ nav > li {background-color: black

Transform: rotateY (180deg)

Transition: all 0.5s

Opacity: 0;}

Hover. Two _ nav > li {

Transform:none

Opacity: 1;}

Hover. Two _ nav > li:nth-child (1) {

Transition-delay: 200ms;}

Hover. Two _ nav > li:nth-child (2) {

Transition-delay: 300ms;}

Hover. Two _ nav > li:nth-child (3) {

Transition-delay: 400ms}

Hover. Two _ nav > li:nth-child (4) {

Transition-delay: 500ms;}

.room.two _ nav > li:nth-child (4) {

Transition-delay: 200ms;}

.room.two _ nav > li:nth-child (3) {

Transition-delay: 300ms;}

.room.two _ nav > li:nth-child (2) {

Transition-delay: 400ms;}

.room.two _ nav > li:nth-child (1) {

Transition-delay: 500ms;}

Game center

Live broadcast

New year festival

Game center

Player center

This is the end of the article on "what details should be paid attention to in the use of Html". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what details should be paid attention to in the use of Html". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report