English 中文(简体)
Max-hels将不设规模
原标题:Max-height will not scale site

我得以获得我的项目的宽度,以扩大而不是提升高度(在PeFox和Kecent,我理解IE不会奏效)。

在这方面,特别安全局 我正在使用:

section.main 
{
 max-height: 100%; 
 max-width: 100%; 
 border: 1px solid black; 
 width: 1000px; 
 height: 800px;
}
问题回答

而且,你具体说明了800px的高度。 因此,你的网站是800皮克。

Make sure you have :

html, body
{
width : 100%;
height : 100%;
}

要想达到一定比例的高度,必须确定父母的高度。

请注意,你的边境造成问题: 该科将达到100%的高度+2px。 您可使用:

section
{
box-sizing : border-box
}




相关问题
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!

热门标签