国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Priority of the three methods

If there is a situation: we use three methods to set css style for the same element at the same time, then which method is really effective? This happens in the editor on the right

1. Use inlineCSS to set the "Super Cool Internet" text to pink.

2. Then use embeddedCSS to set the text to red.

3. Finally, use external style to set the text to blue (set in the style.css file).

But finally you can observe that the text of the short words "Super Cool Internet" is set to pink. Because these three styles have priorities, remember their priorities:Inline > Embedded> External

ButEmbedded >External styleThere is a premise: the position of the embedded css style must be behind the external style. For example, in the right code editor, the <link href="style.css" ...> code is in front of the <style type="text/css">...</style> code (actually This is also written during development). Interested friends can try it, reverse their order, and see if their priorities change.

In fact, in summary, it is --the principle of proximity (the closer to the element being set, the higher the priority).

Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>樣式網(wǎng)頁(yè)</title> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> span{ color:red; } </style> </head> <body> <p>PHP中文網(wǎng),<span style="color:pink">超酷的互聯(lián)網(wǎng)</span>、IT技術(shù)免費(fèi)學(xué)習(xí)平臺(tái),創(chuàng)新的網(wǎng)絡(luò)一站式學(xué)習(xí)、實(shí)踐體驗(yàn);服務(wù)及時(shí)貼心,內(nèi)容專業(yè)、有趣易學(xué)。專注服務(wù)互聯(lián)網(wǎng)工程師快速成為技術(shù)高手!</p> </body> </html>
submitReset Code