textcloner Posted June 3, 2010 Report Share Posted June 3, 2010 Здравствуйте!Подскажите, как убрать в таблице стилей кнопку печати?Спасибо. Quote Link to comment Share on other sites More sharing options...
0 Int Posted June 3, 2010 Report Share Posted June 3, 2010 Это чтобы ctrl+p не работало? Никак. Quote Link to comment Share on other sites More sharing options...
0 textcloner Posted June 3, 2010 Author Report Share Posted June 3, 2010 нет, чтобы в распечатанном документе не было кнопки Quote Link to comment Share on other sites More sharing options...
0 stars Posted June 3, 2010 Report Share Posted June 3, 2010 <LINK rel="stylesheet" type"text/css" href="print.css" media="print">button.displey = none Quote Link to comment Share on other sites More sharing options...
0 textcloner Posted June 3, 2010 Author Report Share Posted June 3, 2010 (edited) благодарствую, а для тех кто в танке поясните, куда вставить строку button.display = none Edited June 3, 2010 by textcloner Quote Link to comment Share on other sites More sharing options...
0 stars Posted June 3, 2010 Report Share Posted June 3, 2010 (edited) ))))))))Давайте я поясню предложенное мной решение в целом может тогда поймети...Дело в том что обычная web страница имеет помимо набора тэгов еще и стили которые обычно выделяю в отдельный css файл и подгружают путем объявления <link rel="stylesheet" href="style.css" type="text/css">я же предлогаю вам сделать еще 1 файл css и подключить его как <link rel="stylesheet" type"text/css" href="print.css" media="print">он должен быть копией style.css но в стилях прописать вашей кнопке displey:none он будет использоваться при печати Edited June 3, 2010 by stars Quote Link to comment Share on other sites More sharing options...
0 textcloner Posted June 3, 2010 Author Report Share Posted June 3, 2010 )))то есть внутри print.css нужно просто написатьdisplay:none ? Quote Link to comment Share on other sites More sharing options...
0 stars Posted June 3, 2010 Report Share Posted June 3, 2010 )))то есть внутри print.css нужно просто написатьdisplay:none ?Ууууу, значит со так идем сюда http://stepbystep.htmlbook.ru/ и читаем "CSS по шагам", если одного css будет мало читаем также про "HTML по шагам" Quote Link to comment Share on other sites More sharing options...
Question
textcloner
Здравствуйте!
Подскажите, как убрать в таблице стилей кнопку печати?
Спасибо.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.