<input id="ldmwe"></input>
  \r\n        
  \r\n              \r\n                歡迎登錄系統(tǒng)<\/h1>  \r\n                賬號(hào):<\/h4>  \r\n                密碼:<\/h4>  \r\n            <\/div>  \r\n        <\/div>  \r\n    <\/body>  \r\n<\/html><\/pre><\/p>②: Box model div placement Example:

<\/p>

\"css<\/p>demo.html

  \r\n  \r\n      \r\n        Div+Css布局(div+span以及盒模型)<\/title>  \r\n        <meta charset=\"utf-8\">  \r\n        <style type=\"text\/css\">  \r\n        body{  \r\n            margin:0;  \r\n            padding:0;  \r\n            background-color:rgba(0,0,255,0.3);  \r\n        }  \r\n        div{  \r\n            width:500px;  \r\n            height:500px;  \r\n            background-color:rgba(250,128,10,0.8);  \r\n            margin:0 auto;   \/* 使div居中*\/  \r\n  \r\n            border:solid black;  \r\n        }  \r\n        div.div1{  \r\n            float:left;   \/* 向左排列\(zhòng)/*  \r\n            background-color:rgba(255,0,0,0.4);  \r\n            border:solid blue;  \r\n            height:244px;  \r\n            width:244px;      \r\n            margin:0;  \r\n            padding:0;  \r\n        }  \r\n          \r\n        <\/style>  \r\n    <\/head>  \r\n    <body>
<h1><a href="http://www.miracleart.cn/">国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂</a></h1>  \r\n        <div>  \r\n        <div class=\"div1\"><\/div>  \r\n        <div class=\"div1\"><\/div>  \r\n          \r\n        <\/div>  \r\n    <\/body>  \r\n<\/html><\/pre><\/p> 3. Layout-related attributes (important) <p><br\/> (1) position Positioning method ①. Normal positioning: relative ②. Positioning according to the parent element: absolute ③. Positioning according to the browser window: fixed ④. No positioning: static ⑤. Inherit: inherit (2) Positioning ①.left:XXpx (left) away from the page vertex Distance ②.right: The distance of XXpx (right) from the page vertex ③.top: The distance of XXpx (top) from the page vertex ④.bottom: The distance of XXpx (bottom) from the page vertex (3) z-index layer coverage sequence (Priority) ①.-1,0,1,2,3; when it is -1, the layer is the lowest layer <br\/> (4) display display attribute (switching between block-level labels and inline labels ) <br\/>①.display: none layer is not displayed <br\/>②.display: block block display, wrap after the element, display the next block element <br\/>③.display: inline inline display, multiple blocks can be Displayed in one line <br\/><br\/> (5) float floating attribute <br\/>①.left: left floating <br\/>②.right: right floating <br\/><br\/>[b] (6) clear clear float[ \/b]<br\/>①.clear: both<br\/><br\/>[b] (7) overflow overflow processing[\/b]<br\/>①.hidden hides content that exceeds the layer size<br\/><br\/>②. scrollAdd scroll bars regardless of whether the content exceeds the layer size<br\/>③.auto Automatically add scroll bars when exceeding the limit<br\/><br\/>[b]Example:[\/b]<br\/><br\/>①: Fixed position and layout demo<br\/><\/p><p><img src=\"https:\/\/img.php.cn\/\/upload\/image\/153\/801\/969\/1482912611233447.png\" title=\"1482912611233447.png\" alt=\"css folding style (4) - div+css layout\"\/><pre class='brush:php;toolbar:false;'><!doctype html>  \r\n<html>  \r\n    <head>  \r\n        <title>Div+Css布局(布局相關(guān)的屬性)<\/title>  \r\n        <meta charset=\"utf-8\">  \r\n        <style type=\"text\/css\">  \r\n            body{  \r\n            padding:0;  \r\n            margin:0;  \r\n            }  \r\n              \r\n            div.diva{  \r\n                position:relative;   \/* 一定要添加,如沒(méi)添加其子元素則不生效*\/  \r\n                margin:50px;  \r\n                width:500px;  \r\n                height:500px;  \r\n                background-color:rgba(255,0,0,0.4);   \r\n                  \r\n            }  \r\n            .spanb{  \r\n          \r\n                position:absolute;  \r\n                background-color:blue;  \r\n                color:black;  \r\n                top:-10px;  \r\n                right:0;  \r\n              \r\n                }  \r\n              \r\n            .fixed{  \r\n                padding:20px;  \r\n                background:green;  \r\n                position:fixed;  \r\n                left:0;  \r\n                top:40px;  \r\n                z-index:1;   \/* z-index的value值可為-1,0,1,2;當(dāng)為-1時(shí),該圖層為最底層 *\/  \r\n            }  \r\n              \r\n  \r\n        <\/style>  \r\n    <\/head>  \r\n    <body>  \r\n          \r\n        <div class=\"fixed\">  \r\n            <p>聯(lián)系人:翁孟鎧<\/p>  \r\n            <p>聯(lián)系電話:XXXxxxx<\/p>  \r\n            <p>地址:XXXXXXXXXXX<\/p>  \r\n        <\/div>  \r\n          \r\n        <div class=\"diva\">  \r\n            <span class=\"spanb\">瀏覽次數(shù):222<\/spn>  \r\n        <\/div>  \r\n              \r\n          \r\n          \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n        <br\/>  \r\n    <\/body>  \r\n<\/html><\/pre><\/p>②: Floating and overflow effects demo<p><\/p><p><img src=\"https:\/\/img.php.cn\/\/upload\/image\/431\/132\/694\/1482912644461369.png\" title=\"1482912644461369.png\" alt=\"css folding style (4) - div+css layout\"\/><pre class='brush:php;toolbar:false;'><!doctype html>  \r\n<html>  \r\n   <head>  \r\n      <title>Div+Css布局(浮動(dòng)以及溢出處理)<\/title>  \r\n      <meta charset=\"utf-8\">  \r\n      <style type=\"text\/css\">  \r\n         body{  \r\n         padding:0;  \r\n         margin:0;  \r\n         }  \r\n         .div{  \r\n            width:auto;  \r\n            height:auto;  \r\n            background:#f1f1f1;  \r\n            margin:0 auto;  \r\n            color: black;  \r\n         }  \r\n  \r\n         .left{  \r\n            width: 300px;  \r\n            height: 400px;  \r\n            position: inherit;  \r\n            top: 60px;  \r\n            background:yellow;  \r\n            float: left;  \r\n            color: black;  \r\n         }  \r\n         .right{  \r\n            float: left;  \r\n            width: 1049px;  \r\n            height: 400px;  \r\n            position: inherit;  \r\n            top: 60px;  \r\n            background:lavenderblush;  \r\n            color: black;  \r\n         }  \r\n  \r\n         .top{  \r\n            width: auto;  \r\n            height: 60px;  \r\n            background: royalblue;  \r\n            position: inherit;  \r\n            top:0;  \r\n         }  \r\n         .bottom{  \r\n            clear: both;  \r\n            margin-top:20px;  \r\n            width: 960px;  \r\n            height: 20px;  \r\n            background: red;  \r\n         }  \r\n  \r\n         .jianjie{  \r\n            height: 80px;  \r\n            width: 200px;  \r\n            background: brown;  \r\n            overflow: auto;  \r\n  \r\n         }  \r\n  \r\n      <\/style>  \r\n   <\/head>  \r\n   <body>  \r\n      <div class=\"div\">  \r\n         <div class=\"top\">logo<\/div>  \r\n         <div class=\"left\">左邊<\/div>  \r\n         <div class=\"right\">  \r\n            簡(jiǎn)介:<br>  \r\n            <div class=\"jianjie\">  \r\n               1、這是簡(jiǎn)介<br>  \r\n               2、我們?cè)谧鲆绯鰷y(cè)試<br>  \r\n               3、hidden 隱藏超出層大小的內(nèi)容<br>  \r\n               4、scroll無(wú)論內(nèi)容是否超出層大小都添加滾動(dòng)條<br>  \r\n               5、auto 超出時(shí)自動(dòng)添加滾動(dòng)條  \r\n            <\/div>  \r\n  \r\n         <\/div>  \r\n         <div class=\"bottom\"><\/div>  \r\n      <\/div>  \r\n   <\/body>  \r\n<\/html><\/pre><\/p>The above is the css folding style (4)—— The content of div+css layout, for more related content, please pay attention to the PHP Chinese website (www.miracleart.cn)! <p><\/p>\n<p><br><\/p>"}	</script>
	
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script>var V_PATH="/";window.onerror=function(){ return true; };</script>
</head>

<body data-commit-time="2023-12-28T14:50:12+08:00" class="editor_body body2_2">
	<link rel="stylesheet" type="text/css" href="/static/csshw/stylehw.css">
<header>
    <div   id="377j5v51b"   class="head">
        <div   id="377j5v51b"   class="haed_left">
            <div   id="377j5v51b"   class="haed_logo">
                <a href="http://www.miracleart.cn/" title="" class="haed_logo_a">
                    <img src="/static/imghw/logo.png" alt="" class="haed_logoimg">
                </a>
            </div>
            <div   id="377j5v51b"   class="head_nav">
                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Community" class="head_nava head_nava-template1">Community</a>
                    <div   class="377j5v51b"   id="dropdown-template1" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://www.miracleart.cn/article.html" title="Articles" class="languagechoosea on">Articles</a>
                            <a href="http://www.miracleart.cn/faq/zt" title="Topics" class="languagechoosea">Topics</a>
                            <a href="http://www.miracleart.cn/wenda.html" title="Q&A" class="languagechoosea">Q&A</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Learn" class="head_nava head_nava-template1_1">Learn</a>
                    <div   class="377j5v51b"   id="dropdown-template1_1" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://www.miracleart.cn/course.html" title="Course" class="languagechoosea on">Course</a>
                            <a href="http://www.miracleart.cn/dic/" title="Programming Dictionary" class="languagechoosea">Programming Dictionary</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Tools Library" class="head_nava head_nava-template1_2">Tools Library</a>
                    <div   class="377j5v51b"   id="dropdown-template1_2" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://www.miracleart.cn/toolset/development-tools" title="Development tools" class="languagechoosea on">Development tools</a>
                            <a href="http://www.miracleart.cn/toolset/website-source-code" title="Website Source Code" class="languagechoosea">Website Source Code</a>
                            <a href="http://www.miracleart.cn/toolset/php-libraries" title="PHP Libraries" class="languagechoosea">PHP Libraries</a>
                            <a href="http://www.miracleart.cn/toolset/js-special-effects" title="JS special effects" class="languagechoosea on">JS special effects</a>
                            <a href="http://www.miracleart.cn/toolset/website-materials" title="Website Materials" class="languagechoosea on">Website Materials</a>
                            <a href="http://www.miracleart.cn/toolset/extension-plug-ins" title="Extension plug-ins" class="languagechoosea on">Extension plug-ins</a>
                        </div>
                    </div>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="http://www.miracleart.cn/ai" title="AI Tools" class="head_nava head_nava-template1_3">AI Tools</a>
                </div>

                <div   id="377j5v51b"   class="head_navs">
                    <a href="javascript:;" title="Leisure" class="head_nava head_nava-template1_3">Leisure</a>
                    <div   class="377j5v51b"   id="dropdown-template1_3" style="display: none;">
                        <div   id="377j5v51b"   class="languagechoose">
                            <a href="http://www.miracleart.cn/game" title="Game Download" class="languagechoosea on">Game Download</a>
                            <a href="http://www.miracleart.cn/mobile-game-tutorial/" title="Game Tutorials" class="languagechoosea">Game Tutorials</a>

                        </div>
                    </div>
                </div>
            </div>
        </div>
                    <div   id="377j5v51b"   class="head_search">
                <input id="key_words"  onkeydown="if (event.keyCode == 13) searchs('en')" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="">
                <a href="javascript:;" title="search"  onclick="searchs('en')"><img src="/static/imghw/find.png" alt="search"></a>
            </div>
                <div   id="377j5v51b"   class="head_right">
            <div   id="377j5v51b"   class="haed_language">
                <a href="javascript:;" class="layui-btn haed_language_btn">English<i class="layui-icon layui-icon-triangle-d"></i></a>
                <div   class="377j5v51b"   id="dropdown-template" style="display: none;">
                    <div   id="377j5v51b"   class="languagechoose">
                                                <a href="javascript:setlang('zh-cn');" title="簡(jiǎn)體中文" class="languagechoosea">簡(jiǎn)體中文</a>
                                                <a href="javascript:;" title="English" class="languagechoosea">English</a>
                                                <a href="javascript:setlang('zh-tw');" title="繁體中文" class="languagechoosea">繁體中文</a>
                                                <a href="javascript:setlang('ja');" title="日本語(yǔ)" class="languagechoosea">日本語(yǔ)</a>
                                                <a href="javascript:setlang('ko');" title="???" class="languagechoosea">???</a>
                                                <a href="javascript:setlang('ms');" title="Melayu" class="languagechoosea">Melayu</a>
                                                <a href="javascript:setlang('fr');" title="Fran?ais" class="languagechoosea">Fran?ais</a>
                                                <a href="javascript:setlang('de');" title="Deutsch" class="languagechoosea">Deutsch</a>
                                            </div>
                </div>
            </div>
            <span id="377j5v51b"    class="head_right_line"></span>
                            <div style="display: block;" id="login" class="haed_login ">
                    <a href="javascript:;"  title="Login" class="haed_logina ">Login</a>
                </div>
                <div style="display: block;" id="reg" class="head_signup login">
                    <a href="javascript:;"  title="singup" class="head_signupa">singup</a>
                </div>
            
        </div>
    </div>
</header>

	
	<main>
		<div   id="377j5v51b"   class="Article_Details_main">
			<div   id="377j5v51b"   class="Article_Details_main1">
							<div   id="377j5v51b"   class="Article_Details_main1M">
					<div   id="377j5v51b"   class="phpgenera_Details_mainL1">
						<a href="http://www.miracleart.cn/" title="Home"
							class="phpgenera_Details_mainL1a">Home</a>
						<img src="/static/imghw/top_right.png" alt="" />
												<a href="http://www.miracleart.cn/web-designer.html"
							class="phpgenera_Details_mainL1a">Web Front-end</a>
						<img src="/static/imghw/top_right.png" alt="" />
												<a href="http://www.miracleart.cn/css-tutorial.html"
							class="phpgenera_Details_mainL1a">CSS Tutorial</a>
						<img src="/static/imghw/top_right.png" alt="" />
						<span>css folding style (4) - div+css layout</span>
					</div>
					
					<div   id="377j5v51b"   class="Articlelist_txts">
						<div   id="377j5v51b"   class="Articlelist_txts_info">
							<h1 class="Articlelist_txts_title">css folding style (4) - div+css layout</h1>
							<div   id="377j5v51b"   class="Articlelist_txts_info_head">
								<div   id="377j5v51b"   class="author_info">
									<a href="http://www.miracleart.cn/member/194.html"  class="author_avatar">
									<img class="lazy"  data-src="https://img.php.cn/upload/avatar/000/000/194/591128da2963a284.jpg" src="/static/imghw/default1.png" alt="黃舟">
									</a>
									<div   id="377j5v51b"   class="author_detail">
																			<a href="http://www.miracleart.cn/member/194.html" class="author_name">黃舟</a>
                                										</div>
								</div>
                			</div>
							<span id="377j5v51b"    class="Articlelist_txts_time">Dec 28, 2016 pm	 04:11 PM</span>
															<div   id="377j5v51b"   class="Articlelist_txts_infos">
																			<span id="377j5v51b"    class="Articlelist_txts_infoss on">css</span>
																			<span id="377j5v51b"    class="Articlelist_txts_infoss ">div+css layout</span>
																	</div>
														
						</div>
					</div>
					<hr />
					<div   id="377j5v51b"   class="article_main php-article">
						<div   id="377j5v51b"   class="article-list-left detail-content-wrap content">
						<ins class="adsbygoogle"
							style="display:block; text-align:center;"
							data-ad-layout="in-article"
							data-ad-format="fluid"
							data-ad-client="ca-pub-5902227090019525"
							data-ad-slot="3461856641">
						</ins>
						

					<p>Summary of content:</p>
<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn//upload/image/958/617/683/1482912460808099.png" class="lazy" title="1482912460808099.png" alt="css folding style (4) - div+css layout"></p>##1. div and span<p>(1) Block-level tag: div<br>(2) Inline tag: span<br>As shown in the picture: <br></p>
<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn//upload/image/552/722/903/1482912473741290.png" class="lazy" title="1482912473741290.png" alt="css folding style (4) - div+css layout"></p> 2. Box model (important)<p><br>Note: You can view the box using the browser’s debugging tool<br><br>(1) margin: box outer margin<br></p>
<p><br></p>
<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn//upload/image/827/882/921/1482912491499368.png" class="lazy" title="1482912491499368.png" alt="css folding style (4) - div+css layout"></p>(2) padding: box inner margin (will change the size of the block)<p></p>
<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn//upload/image/476/221/197/1482912509907885.png" class="lazy" title="1482912509907885.png" alt="css folding style (4) - div+css layout"></p> (3) border: box border width <p> (4) width: box width <br> (5) height: box height <br><br> Example: <br><br>①: The difference between outer margin and inner margin: <br></p>
<p><img src="/static/imghw/default1.png" data-src="https://img.php.cn//upload/image/560/914/892/1482912535508330.png" class="lazy" title="1482912535508330.png" alt="css folding style (4) - div+css layout"></p>demo.html<p><br><pre class='brush:php;toolbar:false;'><!doctype html>  
<html>  
    <head>  
        <title>Div+Css布局(div+span以及盒模型)</title>  
        <meta charset="utf-8">  
        <style type="text/css">  
          
            body{  
                margin:0;  
                padding:0;  
                background:#C5C1AA;  
            }  
            div{  
                height:500px;  
                margin:60px;  
                padding:o;  
                border:solid 2px black;  
                background-color:rgba(255,0,0,0.7);  
                }  
            div.div1{  
                height:400px;  
                margin:0 audio;  
                border:solid 3px black;  
                background-color:rgba(0,0,255,0.7);  
            }  
              
          
                  
                  
              
        </style>  
    </head>  
    <body>  
        <div>  
            <div class="div1">  
                <h1 style="text-align:center;">歡迎登錄系統(tǒng)</h1>  
                <h4 style="text-align:center;">賬號(hào):<input style="text"></h4>  
                <h4 style="text-align:center;">密碼:<input style="text"></h4>  
            </div>  
        </div>  
    </body>  
</html></pre></p>②: Box model div placement Example: <p></p><p><img src="/static/imghw/default1.png"  data-src="https://img.php.cn//upload/image/898/921/828/1482912568982940.png"  class="lazy" title="1482912568982940.png" alt="css folding style (4) - div+css layout"/></p>demo.html<p><br/><pre class='brush:php;toolbar:false;'><!doctype html>  
<html>  
    <head>  
        <title>Div+Css布局(div+span以及盒模型)</title>  
        <meta charset="utf-8">  
        <style type="text/css">  
        body{  
            margin:0;  
            padding:0;  
            background-color:rgba(0,0,255,0.3);  
        }  
        div{  
            width:500px;  
            height:500px;  
            background-color:rgba(250,128,10,0.8);  
            margin:0 auto;   /* 使div居中*/  
  
            border:solid black;  
        }  
        div.div1{  
            float:left;   /* 向左排列/*  
            background-color:rgba(255,0,0,0.4);  
            border:solid blue;  
            height:244px;  
            width:244px;      
            margin:0;  
            padding:0;  
        }  
          
        </style>  
    </head>  
    <body>  
        <div>  
        <div class="div1"></div>  
        <div class="div1"></div>  
          
        </div>  
    </body>  
</html></pre></p> 3. Layout-related attributes (important) <p><br/> (1) position Positioning method ①. Normal positioning: relative ②. Positioning according to the parent element: absolute ③. Positioning according to the browser window: fixed ④. No positioning: static ⑤. Inherit: inherit (2) Positioning ①.left:XXpx (left) away from the page vertex Distance ②.right: The distance of XXpx (right) from the page vertex ③.top: The distance of XXpx (top) from the page vertex ④.bottom: The distance of XXpx (bottom) from the page vertex (3) z-index layer coverage sequence (Priority) ①.-1,0,1,2,3; when it is -1, the layer is the lowest layer <br/> (4) display display attribute (switching between block-level labels and inline labels ) <br/>①.display: none layer is not displayed <br/>②.display: block block display, wrap after the element, display the next block element <br/>③.display: inline inline display, multiple blocks can be Displayed in one line <br/><br/> (5) float floating attribute <br/>①.left: left floating <br/>②.right: right floating <br/><br/>[b] (6) clear clear float[ /b]<br/>①.clear: both<br/><br/>[b] (7) overflow overflow processing[/b]<br/>①.hidden hides content that exceeds the layer size<br/><br/>②. scrollAdd scroll bars regardless of whether the content exceeds the layer size<br/>③.auto Automatically add scroll bars when exceeding the limit<br/><br/>[b]Example:[/b]<br/><br/>①: Fixed position and layout demo<br/></p><p><img src="/static/imghw/default1.png"  data-src="https://img.php.cn//upload/image/153/801/969/1482912611233447.png"  class="lazy" title="1482912611233447.png" alt="css folding style (4) - div+css layout"/><pre class='brush:php;toolbar:false;'><!doctype html>  
<html>  
    <head>  
        <title>Div+Css布局(布局相關(guān)的屬性)</title>  
        <meta charset="utf-8">  
        <style type="text/css">  
            body{  
            padding:0;  
            margin:0;  
            }  
              
            div.diva{  
                position:relative;   /* 一定要添加,如沒(méi)添加其子元素則不生效*/  
                margin:50px;  
                width:500px;  
                height:500px;  
                background-color:rgba(255,0,0,0.4);   
                  
            }  
            .spanb{  
          
                position:absolute;  
                background-color:blue;  
                color:black;  
                top:-10px;  
                right:0;  
              
                }  
              
            .fixed{  
                padding:20px;  
                background:green;  
                position:fixed;  
                left:0;  
                top:40px;  
                z-index:1;   /* z-index的value值可為-1,0,1,2;當(dāng)為-1時(shí),該圖層為最底層 */  
            }  
              
  
        </style>  
    </head>  
    <body>  
          
        <div class="fixed">  
            <p>聯(lián)系人:翁孟鎧</p>  
            <p>聯(lián)系電話:XXXxxxx</p>  
            <p>地址:XXXXXXXXXXX</p>  
        </div>  
          
        <div class="diva">  
            <span class="spanb">瀏覽次數(shù):222</spn>  
        </div>  
              
          
          
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
        <br/>  
    </body>  
</html></pre></p>②: Floating and overflow effects demo<p></p><p><img src="/static/imghw/default1.png"  data-src="https://img.php.cn//upload/image/431/132/694/1482912644461369.png"  class="lazy" title="1482912644461369.png" alt="css folding style (4) - div+css layout"/><pre class='brush:php;toolbar:false;'><!doctype html>  
<html>  
   <head>  
      <title>Div+Css布局(浮動(dòng)以及溢出處理)</title>  
      <meta charset="utf-8">  
      <style type="text/css">  
         body{  
         padding:0;  
         margin:0;  
         }  
         .div{  
            width:auto;  
            height:auto;  
            background:#f1f1f1;  
            margin:0 auto;  
            color: black;  
         }  
  
         .left{  
            width: 300px;  
            height: 400px;  
            position: inherit;  
            top: 60px;  
            background:yellow;  
            float: left;  
            color: black;  
         }  
         .right{  
            float: left;  
            width: 1049px;  
            height: 400px;  
            position: inherit;  
            top: 60px;  
            background:lavenderblush;  
            color: black;  
         }  
  
         .top{  
            width: auto;  
            height: 60px;  
            background: royalblue;  
            position: inherit;  
            top:0;  
         }  
         .bottom{  
            clear: both;  
            margin-top:20px;  
            width: 960px;  
            height: 20px;  
            background: red;  
         }  
  
         .jianjie{  
            height: 80px;  
            width: 200px;  
            background: brown;  
            overflow: auto;  
  
         }  
  
      </style>  
   </head>  
   <body>  
      <div class="div">  
         <div class="top">logo</div>  
         <div class="left">左邊</div>  
         <div class="right">  
            簡(jiǎn)介:<br>  
            <div class="jianjie">  
               1、這是簡(jiǎn)介<br>  
               2、我們?cè)谧鲆绯鰷y(cè)試<br>  
               3、hidden 隱藏超出層大小的內(nèi)容<br>  
               4、scroll無(wú)論內(nèi)容是否超出層大小都添加滾動(dòng)條<br>  
               5、auto 超出時(shí)自動(dòng)添加滾動(dòng)條  
            </div>  
  
         </div>  
         <div class="bottom"></div>  
      </div>  
   </body>  
</html></pre></p>The above is the css folding style (4)—— The content of div+css layout, for more related content, please pay attention to the PHP Chinese website (www.miracleart.cn)! <p></p>
<p><br></p>


						</div>
					</div>
					<div   id="377j5v51b"   class="wzconShengming_sp">
						<div   id="377j5v51b"   class="bzsmdiv_sp">Statement of this Website</div>
						<div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div>
					</div>
				</div>

				<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-5902227090019525"
     data-ad-slot="2507867629"></ins>



				<div   id="377j5v51b"   class="AI_ToolDetails_main4sR">


				<ins class="adsbygoogle"
        style="display:block"
        data-ad-client="ca-pub-5902227090019525"
        data-ad-slot="3653428331"
        data-ad-format="auto"
        data-full-width-responsive="true"></ins>
    


					<!-- <div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Article</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796832397.html" title="Grass Wonder Build Guide | Uma Musume Pretty Derby" class="phpgenera_Details_mainR4_bottom_title">Grass Wonder Build Guide | Uma Musume Pretty Derby</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796833110.html" title="Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them" class="phpgenera_Details_mainR4_bottom_title">Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796831605.html" title="Uma Musume Pretty Derby Banner Schedule (July 2025)" class="phpgenera_Details_mainR4_bottom_title">Uma Musume Pretty Derby Banner Schedule (July 2025)</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796836699.html" title="RimWorld Odyssey Temperature Guide for Ships and Gravtech" class="phpgenera_Details_mainR4_bottom_title">RimWorld Odyssey Temperature Guide for Ships and Gravtech</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>3 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796831905.html" title="Windows Security is blank or not showing options" class="phpgenera_Details_mainR4_bottom_title">Windows Security is blank or not showing options</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By 下次還敢</span>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://www.miracleart.cn/article.html">Show More</a>
							</div>
						</div>
					</div> -->


											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/hottools2.png" alt="" />
									<h2>Hot AI Tools</h2>
								</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title">
													<h3>Undress AI Tool</h3>
												</a>
												<p>Undress images for free</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title">
													<h3>Undresser.AI Undress</h3>
												</a>
												<p>AI-powered app for creating realistic nude photos</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title">
													<h3>AI Clothes Remover</h3>
												</a>
												<p>Online AI tool for removing clothes from photos.</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title">
													<h3>Clothoff.io</h3>
												</a>
												<p>AI clothes remover</p>
											</div>
										</div>
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title">
													<h3>Video Face Swap</h3>
												</a>
												<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
											</div>
										</div>
																</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
									<a href="http://www.miracleart.cn/ai">Show More</a>
								</div>
							</div>
						</div>
					


					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Article</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796832397.html" title="Grass Wonder Build Guide | Uma Musume Pretty Derby" class="phpgenera_Details_mainR4_bottom_title">Grass Wonder Build Guide | Uma Musume Pretty Derby</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796833110.html" title="Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them" class="phpgenera_Details_mainR4_bottom_title">Roblox: 99 Nights In The Forest - All Badges And How To Unlock Them</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>4 weeks ago</span>
										<span>By DDD</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796831605.html" title="Uma Musume Pretty Derby Banner Schedule (July 2025)" class="phpgenera_Details_mainR4_bottom_title">Uma Musume Pretty Derby Banner Schedule (July 2025)</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796836699.html" title="RimWorld Odyssey Temperature Guide for Ships and Gravtech" class="phpgenera_Details_mainR4_bottom_title">RimWorld Odyssey Temperature Guide for Ships and Gravtech</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>3 weeks ago</span>
										<span>By Jack chen</span>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/1796831905.html" title="Windows Security is blank or not showing options" class="phpgenera_Details_mainR4_bottom_title">Windows Security is blank or not showing options</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<span>1 months ago</span>
										<span>By 下次還敢</span>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://www.miracleart.cn/article.html">Show More</a>
							</div>
						</div>
					</div>


											<div   id="377j5v51b"   class="phpgenera_Details_mainR3">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank">
								<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/hottools2.png" alt="" />
									<h2>Hot Tools</h2>
								</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_bottom">
																		<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title">
													<h3>Notepad++7.3.1</h3>
												</a>
												<p>Easy-to-use and free code editor</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title">
													<h3>SublimeText3 Chinese version</h3>
												</a>
												<p>Chinese version, very easy to use</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title">
													<h3>Zend Studio 13.0.1</h3>
												</a>
												<p>Powerful PHP integrated development environment</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title">
													<h3>Dreamweaver CS6</h3>
												</a>
												<p>Visual web development tools</p>
											</div>
										</div>
																			<div   id="377j5v51b"   class="phpmain_tab2_mids_top">
											<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img">
												<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
													class="lazy"  data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" />
											</a>
											<div   id="377j5v51b"   class="phpmain_tab2_mids_info">
												<a href="http://www.miracleart.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title">
													<h3>SublimeText3 Mac version</h3>
												</a>
												<p>God-level code editing software (SublimeText3)</p>
											</div>
										</div>
																	</div>
								<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
									<a href="http://www.miracleart.cn/ai">Show More</a>
								</div>
							</div>
						</div>
										

					
					<div   id="377j5v51b"   class="phpgenera_Details_mainR4">
						<div   id="377j5v51b"   class="phpmain1_4R_readrank">
							<div   id="377j5v51b"   class="phpmain1_4R_readrank_top">
								<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
									src="/static/imghw/hotarticle2.png" alt="" />
								<h2>Hot Topics</h2>
							</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottom">
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1601</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>29</span>
										</div>
									</div>
								</div>
															<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms">
									<a href="http://www.miracleart.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a>
									<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_info">
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/eyess.png" alt="" />
											<span>1502</span>
										</div>
										<div   id="377j5v51b"   class="phpgenera_Details_mainR4_bottoms_infos">
											<img src="/static/imghw/tiezi.png" alt="" />
											<span>276</span>
										</div>
									</div>
								</div>
														</div>
							<div   id="377j5v51b"   class="phpgenera_Details_mainR3_more">
								<a href="http://www.miracleart.cn/faq/zt">Show More</a>
							</div>
						</div>
					</div>
				</div>
			</div>
							<div   id="377j5v51b"   class="Article_Details_main2">
					<div   id="377j5v51b"   class="phpgenera_Details_mainL4">
						<div   id="377j5v51b"   class="phpmain1_2_top">
							<a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img
									src="/static/imghw/index2_title2.png" alt="" /></a>
						</div>
						<div   id="377j5v51b"   class="phpgenera_Details_mainL4_info">

													<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796848693.html" title="How to change text color in CSS?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175356154230616.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to change text color in CSS?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796848693.html" title="How to change text color in CSS?" class="phphistorical_Version2_mids_title">How to change text color in CSS?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 27, 2025 am	 04:25 AM</span>
								<p class="Articlelist_txts_p">To change the text color in CSS, you need to use the color attribute; 1. Use the color attribute to set the text foreground color, supporting color names (such as red), hexadecimal codes (such as #ff0000), RGB values (such as rgb(255,0,0)), HSL values (such as hsl(0,100%,50%)), and RGBA or HSLA with transparency (such as rgba(255,0,0,0.5)); 2. You can apply colors to any element containing text, such as h1 to h6 titles, paragraph p, link a (note the color settings of different states of a:link, a:visited, a:hover, a:active), buttons, div, span, etc.; 3. Most</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796848423.html" title="How to purge unused CSS?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175355565011578.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to purge unused CSS?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796848423.html" title="How to purge unused CSS?" class="phphistorical_Version2_mids_title">How to purge unused CSS?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 27, 2025 am	 02:47 AM</span>
								<p class="Articlelist_txts_p">UseautomatedtoolslikePurgeCSSorUnCSStoscanandremoveunusedCSS;2.IntegratepurgingintoyourbuildprocessviaWebpack,Vite,orTailwind’scontentconfiguration;3.AuditCSSusagewithChromeDevToolsCoveragetabbeforepurgingtoavoidremovingneededstyles;4.Safelistdynamic</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796848607.html" title="What is a stacking context?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175355972029011.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What is a stacking context?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796848607.html" title="What is a stacking context?" class="phphistorical_Version2_mids_title">What is a stacking context?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 27, 2025 am	 03:55 AM</span>
								<p class="Articlelist_txts_p">Astackingcontextisaself-containedlayerinCSSthatcontrolsthez-orderofoverlappingelements,wherenestedcontextsrestrictz-indexinteractions;itiscreatedbypropertieslikez-indexonpositionedelements,opacity</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796848690.html" title="Describe different CSS units and when to use them" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175356147133225.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Describe different CSS units and when to use them" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796848690.html" title="Describe different CSS units and when to use them" class="phphistorical_Version2_mids_title">Describe different CSS units and when to use them</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 27, 2025 am	 04:24 AM</span>
								<p class="Articlelist_txts_p">In web development, the choice of CSS units depends on design requirements and responsive performance. 1. Pixels (px) are used to fix sizes such as borders and icons, but are not conducive to responsive design; 2. Percentage (%) is adjusted according to the parent container, suitable for streaming layout but attention to context dependence; 3.em is based on the current font size, rem is based on the root element font, suitable for elastic fonts and unified theme control; 4. Viewport units (vw/vh/vmin/vmax) are adjusted according to the screen size, suitable for full-screen elements and dynamic UI; 5. Auto, inherit, initial and other values are used to automatically calculate, inherit or reset styles, which helps to flexibly layout and style management. The rational use of these units can improve page flexibility and responsiveness.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796855212.html" title="How to use the CSS backdrop-filter property?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175410786011157.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to use the CSS backdrop-filter property?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796855212.html" title="How to use the CSS backdrop-filter property?" class="phphistorical_Version2_mids_title">How to use the CSS backdrop-filter property?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Aug 02, 2025 pm	 12:11 PM</span>
								<p class="Articlelist_txts_p">Backdrop-filter is used to apply visual effects to the content behind the elements. 1. Use backdrop-filter:blur(10px) and other syntax to achieve the frosted glass effect; 2. Supports multiple filter functions such as blur, brightness, contrast, etc. and can be superimposed; 3. It is often used in glass card design, and it is necessary to ensure that the elements overlap with the background; 4. Modern browsers have good support, and @supports can be used to provide downgrade solutions; 5. Avoid excessive blur values and frequent redrawing to optimize performance. This attribute only takes effect when there is content behind the elements.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796850497.html" title="How to style links in CSS?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175373430151560.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to style links in CSS?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796850497.html" title="How to style links in CSS?" class="phphistorical_Version2_mids_title">How to style links in CSS?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 29, 2025 am	 04:25 AM</span>
								<p class="Articlelist_txts_p">The style of the link should distinguish different states through pseudo-classes. 1. Use a:link to set the unreached link style, 2. a:visited to set the accessed link, 3. a:hover to set the hover effect, 4. a:active to set the click-time style, 5. a:focus ensures keyboard accessibility, always follow the LVHA order to avoid style conflicts. You can improve usability and accessibility by adding padding, cursor:pointer and retaining or customizing focus outlines. You can also use border-bottom or animation underscore to ensure that the link has a good user experience and accessibility in all states.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796848493.html" title="How to center text in CSS?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/431/639/175355736187664.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="How to center text in CSS?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796848493.html" title="How to center text in CSS?" class="phphistorical_Version2_mids_title">How to center text in CSS?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 27, 2025 am	 03:16 AM</span>
								<p class="Articlelist_txts_p">Use text-align:center to achieve horizontal centering of text; 2. Use Flexbox's align-items:center and justify-content:center to achieve vertical and horizontal centering; 3. Single-line text can be vertically centered by setting line-height equal to the container height; 4. Absolute positioning elements can be combined with top: 50%, left: 50% and transform:translate (-50%, -50%) to achieve centering; 5. CSSGrid's place-items:center can also achieve dual-axis centering at the same time. It is recommended to use Flexbox or Grid first in modern layouts.</p>
							</div>
														<div   id="377j5v51b"   class="phphistorical_Version2_mids">
								<a href="http://www.miracleart.cn/faq/1796852960.html" title="What are user agent stylesheets?" class="phphistorical_Version2_mids_img">
									<img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"
										src="/static/imghw/default1.png" class="lazy"  data-src="https://img.php.cn/upload/article/001/253/068/175392930127475.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="What are user agent stylesheets?" />
								</a>
								<a href="http://www.miracleart.cn/faq/1796852960.html" title="What are user agent stylesheets?" class="phphistorical_Version2_mids_title">What are user agent stylesheets?</a>
								<span id="377j5v51b"    class="Articlelist_txts_time">Jul 31, 2025 am	 10:35 AM</span>
								<p class="Articlelist_txts_p">User agent stylesheets are the default CSS styles that browsers automatically apply to ensure that HTML elements that have not added custom styles are still basic readable. They affect the initial appearance of the page, but there are differences between browsers, which may lead to inconsistent display. Developers often solve this problem by resetting or standardizing styles. Use the Developer Tools' Compute or Style panel to view the default styles. Common coverage operations include clearing inner and outer margins, modifying link underscores, adjusting title sizes and unifying button styles. Understanding user agent styles can help improve cross-browser consistency and enable precise layout control.</p>
							</div>
													</div>

													<a href="http://www.miracleart.cn/web-designer.html" class="phpgenera_Details_mainL4_botton">
								<span>See all articles</span>
								<img src="/static/imghw/down_right.png" alt="" />
							</a>
											</div>
				</div>
					</div>
	</main>
	<footer>
    <div   id="377j5v51b"   class="footer">
        <div   id="377j5v51b"   class="footertop">
            <img src="/static/imghw/logo.png" alt="">
            <p>Public welfare online PHP training,Help PHP learners grow quickly!</p>
        </div>
        <div   id="377j5v51b"   class="footermid">
            <a href="http://www.miracleart.cn/about/us.html">About us</a>
            <a href="http://www.miracleart.cn/about/disclaimer.html">Disclaimer</a>
            <a href="http://www.miracleart.cn/update/article_0_1.html">Sitemap</a>
        </div>
        <div   id="377j5v51b"   class="footerbottom">
            <p>
                ? php.cn All rights reserved
            </p>
        </div>
    </div>
</footer>

<input type="hidden" id="verifycode" value="/captcha.html">




		<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
	
	
	
	
	

	
	






<footer>
<div class="friendship-link">
<p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
<a href="http://www.miracleart.cn/" title="国产av日韩一区二区三区精品">国产av日韩一区二区三区精品</a>

<div class="friend-links">


</div>
</div>

</footer>


<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</body><div id="y80ln" class="pl_css_ganrao" style="display: none;"><acronym id="y80ln"><noframes id="y80ln"><thead id="y80ln"></thead></noframes></acronym><tfoot id="y80ln"><pre id="y80ln"></pre></tfoot><fieldset id="y80ln"></fieldset><thead id="y80ln"><nav id="y80ln"><center id="y80ln"><i id="y80ln"></i></center></nav></thead><strong id="y80ln"><mark id="y80ln"><strong id="y80ln"><pre id="y80ln"></pre></strong></mark></strong><listing id="y80ln"><pre id="y80ln"></pre></listing><style id="y80ln"></style><option id="y80ln"><object id="y80ln"><noframes id="y80ln"></noframes></object></option><acronym id="y80ln"></acronym><abbr id="y80ln"></abbr><li id="y80ln"><tbody id="y80ln"><button id="y80ln"></button></tbody></li><table id="y80ln"><address id="y80ln"></address></table><tbody id="y80ln"></tbody><legend id="y80ln"></legend><dfn id="y80ln"><listing id="y80ln"></listing></dfn><label id="y80ln"></label><dl id="y80ln"></dl><u id="y80ln"></u><li id="y80ln"><dl id="y80ln"><button id="y80ln"></button></dl></li><rt id="y80ln"></rt><span id="y80ln"></span><fieldset id="y80ln"><rp id="y80ln"><th id="y80ln"></th></rp></fieldset><u id="y80ln"></u><nobr id="y80ln"></nobr><menuitem id="y80ln"></menuitem><progress id="y80ln"></progress><center id="y80ln"></center><span id="y80ln"><small id="y80ln"><rt id="y80ln"></rt></small></span><option id="y80ln"></option><style id="y80ln"></style><th id="y80ln"><dl id="y80ln"></dl></th><noframes id="y80ln"><rt id="y80ln"></rt></noframes><abbr id="y80ln"><fieldset id="y80ln"><nobr id="y80ln"></nobr></fieldset></abbr><ul id="y80ln"></ul><dd id="y80ln"><strong id="y80ln"><div id="y80ln"></div></strong></dd><dd id="y80ln"></dd><center id="y80ln"><optgroup id="y80ln"><xmp id="y80ln"><bdo id="y80ln"></bdo></xmp></optgroup></center><xmp id="y80ln"></xmp><th id="y80ln"></th><tt id="y80ln"><rt id="y80ln"><tr id="y80ln"></tr></rt></tt><tr id="y80ln"><legend id="y80ln"><ruby id="y80ln"><dl id="y80ln"></dl></ruby></legend></tr><td id="y80ln"><kbd id="y80ln"><p id="y80ln"></p></kbd></td><rp id="y80ln"></rp><em id="y80ln"></em><style id="y80ln"><delect id="y80ln"></delect></style><blockquote id="y80ln"><style id="y80ln"><delect id="y80ln"><cite id="y80ln"></cite></delect></style></blockquote><label id="y80ln"></label><table id="y80ln"><address id="y80ln"><u id="y80ln"></u></address></table><button id="y80ln"></button><kbd id="y80ln"></kbd><form id="y80ln"></form><pre id="y80ln"></pre><menu id="y80ln"><font id="y80ln"><menu id="y80ln"><delect id="y80ln"></delect></menu></font></menu><track id="y80ln"><ol id="y80ln"><pre id="y80ln"><rt id="y80ln"></rt></pre></ol></track><pre id="y80ln"></pre><abbr id="y80ln"></abbr><dfn id="y80ln"></dfn><li id="y80ln"><big id="y80ln"></big></li><option id="y80ln"></option><listing id="y80ln"></listing><object id="y80ln"></object><div id="y80ln"></div><strong id="y80ln"><dfn id="y80ln"><strong id="y80ln"></strong></dfn></strong><s id="y80ln"></s><listing id="y80ln"><dfn id="y80ln"><optgroup id="y80ln"><sub id="y80ln"></sub></optgroup></dfn></listing><pre id="y80ln"></pre><sup id="y80ln"><table id="y80ln"><address id="y80ln"></address></table></sup><dl id="y80ln"></dl><listing id="y80ln"></listing><cite id="y80ln"></cite><s id="y80ln"><samp id="y80ln"><i id="y80ln"></i></samp></s><em id="y80ln"><pre id="y80ln"><b id="y80ln"></b></pre></em><strike id="y80ln"><thead id="y80ln"><input id="y80ln"></input></thead></strike><acronym id="y80ln"></acronym><sub id="y80ln"></sub><style id="y80ln"></style><b id="y80ln"></b><pre id="y80ln"><em id="y80ln"><s id="y80ln"><kbd id="y80ln"></kbd></s></em></pre><address id="y80ln"></address><ul id="y80ln"><code id="y80ln"></code></ul><form id="y80ln"></form><tr id="y80ln"><noframes id="y80ln"><pre id="y80ln"></pre></noframes></tr><b id="y80ln"></b><dl id="y80ln"><ruby id="y80ln"><strong id="y80ln"></strong></ruby></dl><code id="y80ln"><tr id="y80ln"><dfn id="y80ln"></dfn></tr></code><object id="y80ln"></object><dd id="y80ln"></dd><pre id="y80ln"></pre><dd id="y80ln"><strong id="y80ln"></strong></dd><progress id="y80ln"></progress><strong id="y80ln"></strong><xmp id="y80ln"><input id="y80ln"><xmp id="y80ln"><p id="y80ln"></p></xmp></input></xmp><code id="y80ln"></code><fieldset id="y80ln"><rp id="y80ln"></rp></fieldset><table id="y80ln"></table><tfoot id="y80ln"><track id="y80ln"></track></tfoot><address id="y80ln"></address><dfn id="y80ln"></dfn><pre id="y80ln"><ol id="y80ln"></ol></pre><style id="y80ln"></style></div>

</html>