Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 从第n个子级删除类_Jquery_Html_Css_Printing - Fatal编程技术网

Jquery 从第n个子级删除类

Jquery 从第n个子级删除类,jquery,html,css,printing,Jquery,Html,Css,Printing,我希望这是一个相当简单的问题,我有一系列的div: <div class="full"> <div class="wrap"> <div class="grid"> <div class="left"> 但这会影响我页面的整体外观 是否有任何方法可以在CSS中实现上述功能,这样我就可以将其放在print.CSS页面中 print.css在我的html中被引用为: <link type="tex

我希望这是一个相当简单的问题,我有一系列的div:

<div class="full">
    <div class="wrap">
        <div class="grid">
            <div class="left">
但这会影响我页面的整体外观

是否有任何方法可以在CSS中实现上述功能,这样我就可以将其放在print.CSS页面中

print.css在我的html中被引用为:

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

谢谢

试试看

@media print {
    div.full > div:nth-child(1).wrap {
        /*remove styles here eg.*/
        border:0;
        padding:0;
    }
}

为什么不在print.CSS中修改CSS呢?类似:
.wrap{背景色:透明;边框:无;边距:0;填充:0;…}
@media print {
    div.full > div:nth-child(1).wrap {
        /*remove styles here eg.*/
        border:0;
        padding:0;
    }
}