HTML CSS自动调整全垂直长度(高度)

时间:2016-04-25 18:06:17

标签: html css html5 css3

我希望我的div块自动将其高度缩放到屏幕的全长。它应该是屏幕分辨率独立的。我怎样才能做到这一点?

Here is an img of my problem.

任何想法?

1 个答案:

答案 0 :(得分:0)

试试这个,

CSS:

<project>
    ...

    <profiles>
        <profile>
            <pluginRepositories>
                <repository>
                    <id>thirdparty</id>
                    <name>Third Party</name>
                     <url>
                         [URL for the repository that holds the target JAR]
                     </url>
                     <layout>default</layout>
                </repository>
            </pluginRepositories>
            ...
            <id>runJARprofile</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.8</version>
                        <inherited>false</inherited>
                        <dependencies>
                            <dependency>
                                <groupId>com.foobar</groupId>
                                <artifactId>target-jar</artifactId>
                                <version>1.0.0</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>run-jar</id>
                                <phase>package</phase>
                                <configuration>
                                    <target name="runJar" fork="true">
                                        <java jar="${?????}" />
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
...
</project>