V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ooee2016

怎么在浏览器中将页面中指定部分的 html 及 css 复制下来呢

  •  
  •   ooee2016 · Mar 15, 2024 · 1075 views
    This topic created in 782 days ago, the information mentioned may be changed or developed.

    我用 bootstrap 开发前端 有个页面想使用 antd 的 Descriptions 组件的样式

    https://ant-design.antgroup.com/components/descriptions-cn 从页面复制 Html 比较简单,但是 css 样式应该怎么搞呢?

    4 replies    2024-03-17 06:00:09 +08:00
    chenliangngng
        1
    chenliangngng  
       Mar 15, 2024
    把他们 css 文件全拷下来?反正加个父类的事儿
    ooee2016
        2
    ooee2016  
    OP
       Mar 15, 2024
    @chenliangngng #1 也是,我把这个页面下载的 css 文件都拿过来试试
    lynan
        3
    lynan  
       Mar 16, 2024 via iPhone
    可以试试用脚本 getComputedStyle
    ooee2016
        4
    ooee2016  
    OP
       Mar 17, 2024
    @lynan #3 谢谢, 昨天试了引用全部的 css 也不行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:30 · PVG 18:30 · LAX 03:30 · JFK 06:30
    ♥ Do have faith in what you're doing.