6

.box1{
				float: left;
				width: 403px;
				height: 200px;
				
				margin-left: 70px;
				padding-bottom: 18px;
			}
			.img1{
				width: 122px;
				float: left;
				height: 152px;
			}
			.txt{
				float: left;
				width: 262px;
				margin-left: 17px;
			}
			.txt h2{
				margin-bottom: 12px;
			}
			.txt h2 a{
			font-size: 16px;
			color: #DC2D00;
			}
			.txt2{
				margin-top: 10px;
				height: 68px;
				/*background-color: lawngreen;*/
				margin-bottom: 6px;
				text-align: justify;
			}
			.at2{
				position: relative;
				height: 39px;
				line-height: 39px;
			}
			.at2 span{position: absolute;right: 0;bottom: 0;}
			.at2 span a{color: #af4f02;}

相对参照 + 绝对定位:.at2 设为 position: relative,其内部的 设为 position: absolute; right: 0; bottom: 0;,将 固定在 .at2 的右下角(常用于放置“更多”或时间戳等小元素)。

颜色与链接(a 标签)
链接颜色区分:.txt h2 a 为橙红色(#DC2D00),.at2 span a 为深橙色(#af4f02),体现视觉层级。

posted @ 2026-06-14 19:52  nichengzhang  阅读(7)  评论(0)    收藏  举报