CSS: @media print without external css file?
问题 I want to print a html page in a specific way under css. But all the @media print examples seem to have an external .css file I want to be able to do it without an external file which means there will be no link rel tag: <LINK REL="stylesheet" MEDIA="print... How do I do this? 回答1: I would suggest using an external stylesheet but you can how ever do this on the same page as your HTML if you really want to, an example of this would be like so, HTML / CSS <!DOCTYPE html> <html> <head> <style>