Print when textarea has overflow

前端 未结 11 982
眼角桃花
眼角桃花 2020-12-04 23:59

I have a form with some text areas that allow a scroll bar when the text exceeds the text box. The user would like to be able to print the screen, and this text is not visib

11条回答
  •  余生分开走
    2020-12-05 00:24

    This is an easy fix with CSS, given that most users aren't really bothered about printing a bit of extra blank space. Just target a minimum height for textareas when printing:

    @media print { 
    textarea {
    min-height: 500px;  
    }
    }
    

    Tag that onto the end of your CSS with a min-height that is comfortably enough when you look at it in Print Preview.

提交回复
热议问题