HTML CSS , :
div.mydiv {width: 200px; margin: 0 auto}
<div class="mydiv">
I am in the middle
</div>
Ваша схема показывает элемент блочного уровня также (который отделение обычно), не встроенный.
Из вершины моей головы, min-width
поддерживается в FF2 +/Safari3 +/IE7 +. Может быть сделан для IE6 с помощью hackety CSS или простой бит JS.
A few options:
-Dfile.encoding=iso-8859-1
to your ANT_OPTS
environment variable
to setup defaults for all of your
invocationsIf you've got files encoded in a particular way, it's probably best to tell javac that rather than forcing the whole JVM to use a particular encoding. The javac task has an encoding attribute for this reason.
<javac srcdir="${src.dir}" destdir="${build.classes.dir}" encoding="iso-8859-1" />
But really, you should just convert the source files to UTF-8. Everything tastes better in UTF-8. :)
Ant itself cannot set system properties, but if you really want to, you can write a java program which sets the system property, and execute that from within Ant.