English 中文(简体)
CSS How Can I Making Vertical Border Stretch to 100% Height of Two Columns
原标题:With CSS How Can I Make Vertical Border Stretch to 100% Height of Two Columns

缩略语

// Layout

<div class="row">
  <div class="medium-3 columns navs">...</div>  <!-- nav links -->
  <div class="medium-9 columns content">...</div> <!-- page content -->
</div>


<style>
.navs {
  border-right: solid 1px #000; //black
}
.content {
  border-left: solid 1px #000; //black
}
</style>

我想有一条垂直边界,跨越两列边界/共同边界的长度/长度。 我的问题是,虽然这两个栏目似乎都是相同的高度(斜体),但其内容很少保持统一。 在一些网页上,nav链接content div>的内容长。 在某些方面,<代码>中的内容 div已经延长。

无论哪一类I类边界,都有网页显示边界底部存在差距,因为它只延伸到该半部分内容的长度。

<>附加说明:两栏的布局载于一份档案。 每一页没有人工添加。 每页都有布局。

关于如何解决这一问题的想法?

感谢

问题回答

仅使用“显示”:集装箱内和违约时,集装箱的高度相同。 E.g.

.row {display: flex;}
.row div {min-height: 100px; min-width: 100px; background: #e7e7e7;} /* for demo purposes */
.navs {
  border-right: solid 1px #000; 
}
.content {
  border-left: solid 1px #000; 
}
<div class="row">
  <div class="medium-3 columns navs">...</div>  <!-- nav links -->
  <div class="medium-9 columns content">...</div> <!-- page content -->
</div>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签