Please tell me how to implement this style without using pictures and make the width adaptive, thank you!
As shown in the picture:
To add, the right side is closed. I don’t know how to put the picture up but the right side is missing: (
Use absolute positioning, just position the text above the frame
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">#all{ margin:20px auto; width:960px;}#panel{ border:#09F 1px solid; position:relative; width:600px;}#title{ position:absolute; left:20px; top:-15px; background:#FFF; padding:5px 10px;}</style></head><body><div id="all"><div id="panel"><div id="title">基本信息</div><p>内容</p></div></div></body></html>
"http://www.w3.org/TR/html4/loose.dtd">
Thank you, the method of #4 bigc2001 is very simple!