hello.
Is it possible to design CSS in the way that content in <inputare not
visible in print out (a.k.a. value of <inputnot visible) while the
border remain visible?
trial:
input {
border: thin solid black;
visibility: hidden;
}
result:
border also hidden.
trial:
input {
border: thin solid black;
color: white;
}
result:
IE fine. In firefox, the printed color automatically change to black
trial:
input {
border: thin solid black;
color: #eeee;
}
result
same as above.
trial:
@media print {
input {
border: thin solid black;
color: #eeee;
}
}
result
same as above.
Note that adding a container around <inputwould solve the problem by
defining border for the container and set <inputhidden. However this
is a last resort because in the web application I am working on, <input>
is generated by a widget library that refer to this element in 100
different places by javascript, adding a container around <inputwould
mean I have to work on a dozen javascripts that assumed <inputdoesn't
have a container.
Any suggestion?