框架标签(frame) 框架集标签(<frameset>) 常用标签 noresize:固定框架大小 cols:列 rows:行 内联框架 ifame
例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <a href="http://www.w3cschool.com"></a> <iframe src="frameb.html" frameboder="0" width="800"height="800">内联框架 frameboder外边框为0</iframe>
</html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body bgcolor="blue"> Frameb <iframe src="framea.html" width="600px" height="600px"></iframe> </body> </html><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body bgcolor="red"> framea <a href="http://www.w3cschool.com" target="_self">1在本页面打开</a> <a href="http://www.w3cschool.com" target="_blank">2</a> <a href="http://www.w3cschool.com" target="_parent">3在父级页面打开</a> <a href="http://www.w3cschool.com" target="_top">4在顶级页面打开</a> </body> </html>
HTML背景 1.背景标签 Background; 2.背景颜色 Bgcolor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body background="index9.html/hot-warp-one.jpg" > //设计了一张背景图片 </body> </html>
