我一直在使用骨架框架,这是我的代码:
<html>
<head>
<title></title>
<link rel="stylesheet" href="stylesheets_skeleton/skeleton.css">
</head>
<body class = "container sixteen columns" style = "height : 400px; border: solid 1px;">
<div class = "two-thirds column" style = "height: 200px; border: solid 1px; float: left;">
</div>
<div class = "one-third column" style = "height: 200px; border: solid 1px; float: right;">
</div>
</body>
我得到这个输出:
虽然我的预期输出是这样的:
请帮忙,谢谢:)
最佳答案
这可能对你有帮助
<html>
<head>
<title></title>
<link rel="stylesheet" href="stylesheets_skeleton/skeleton.css">
</head>
<body class = "container sixteen columns" style = "height : 400px; border: solid 1px;">
<div style="width:100%; float:left;">
<div class = "two-thirds column" style = "height: 200px; border: solid 1px; float: left;">
</div>
<div class = "one-third column" style = "height: 200px; border: solid 1px; float: right;">
</div>
</div>
</body>
</html>
关于html - 三分之一和三分之二的列不会相互对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22370528/