dtmtu02882 2014-04-09 14:38
浏览 32
已采纳

从按钮关闭表格中的图像

I have an inventory system that generates a website each night containing 200+ items and images. One image/item/price per table row. All items are within a single table.

I can add/edit the html after it's been generated with an automation program that I use. (Automate 9 by Network Automation)

Is there a way to add a button before the table that could switch off all the images within the table? Images are taking up space and if someone were to print off the site. It would be about 10 pages. 3 pages if the images were turned off. Basically I want to make it printer friendly without having to make a copy of the site and remove the images tags from the copy site.

I've been googling for a while and not coming up with a single idea. Kinda tells me it may not be possible.

  • 写回答

2条回答 默认 最新

  • dongzhitao4839 2014-04-09 14:43
    关注

    You can create a CSS file specifically for printing that hides the images.

    Just add <link rel="stylesheet" href="print.css" type="text/css" media="print" />

    And then inside print.css:

    #mytable img { display: none; }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题