CSS 2柱,液体,右轨,轨道最高

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS 2柱,液体,右轨,轨道最高相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>2 columns, liquid, right rail, rail tallest</title>
<style type="text/css">
#container{
	background-color:#9cc;
	overflow:hidden;
	margin:0 100px;
	padding-right:150px; /* The width of the rail */
}
* html #container{
	height:1%; /* So IE plays nice */
}
#content{
	background-color:#9cc;
	width:100%;
	border-right:150px solid #c33; /* The width and color of the rail */
	margin-right:-150px; /* Hat tip to Ryan Brill */
	float:left;
}
#rail{
	background-color:#c33;
	width:150px;
	float:left;
	margin-right:-150px;
}
</style>
</head>
<body>
	<div id="container">
		<div id="content">This is some content This is some content This is some content</div>
		<div id="rail">This is<br />the rail</div>

	</div>
</body>
</html>

以上是关于CSS 2柱,液体,右轨,轨道最高的主要内容,如果未能解决你的问题,请参考以下文章

CSS 3列,液体宽度,左侧导轨最高

3列,液体宽度,左侧轨道

物理应用轨道角动量动画演示matlab源码

人工智能轨道交通行业周刊-第25期(2022.11.28-12.4)

人工智能轨道交通行业周刊-第25期(2022.11.28-12.4)

CSS 3列,液体宽度,含量