css-selectors

    1热度

    4回答

    的代码块不工作 - 这是我的代码示例: Codepen example ul { list-style: none; margin: 0; padding: 0; } ul a { color: #333333; text-decoration: none !important; display: bl

    0热度

    1回答

    在我的CSS,我有这样的事情: .classA .class1, .classA .class2, .classA .class3 a:hover, .classA .class4, .classA #id1, .classA .class5 { color: white;} .classA .class1, .classA .class6 { background-color

    1热度

    4回答

    我有HTML这样的: <tag1> <div class="c"> // need to select that <tag1> <div class="c"> // do not need that </div> </tag1> </div> </tag1> 我要选择的第一tag1内div应用CSS规则 我试图tag1:first-of-type

    -5热度

    1回答

    是否有例如这两个选择之间有什么区别, html { font-family: 'Roboto', sans-serif; font-size: 1em; } 和 * { font-family: 'Roboto', sans-serif; font-size: 1em; }

    0热度

    1回答

    如何从下面的元素中获取“跟随”类别下的所有名称。名称的排列方式对我来说有点陌生,这就是为什么我无法获得所有这些名称的原因。我已经使用了一个能够抓住第一个选择器的选择器。但是,我希望所有名称都在“后面跟着”标题下,直到“edited_into”标题。提前致谢。 这里的元素在其中所需要的名字是一个链接: https://www.dropbox.com/s/nzmvfc75szlgyyn/element

    -1热度

    1回答

    我有这样的代码: #ul_quests { list-style: none; font-size: 20px; margin: 0; padding: 0; text-align: center; } [id=^"q_count"], [id="q_watcher"], [id=^"q_date"

    2热度

    2回答

    我想抓scrapy this使用scrapy的网站。页面结构如下: <div class="list"> <a id="follows" name="follows"></a> <h4 class="li_group">Follows</h4> <div class="soda odd"><a href="...">Star Trek</a></div> <div class="s

    0热度

    1回答

    我有follwing HTML <div class="listing listing--with-margin"> @foreach($recipients as $recipent) <span class="listing__item">{{ $recipent }} <input type="checkbox"></span> <span class="l

    1热度

    1回答

    我很绝望。 试图在通过css悬停的图像上实现一个简单的颜色更改,我无法找到使用我的选择器的正确方法,但我不清楚它为什么不起作用。 (我知道了其他页面使用的网站上) 以下是我对CSS: /* NO ROLLOVER > IMG is GRAY */ #post-1263 > div > div > div > div > div > div:nth-child(1) > div > di

    1热度

    1回答

    我想获得“tracked_by”id到“buzz_off”id之间的电影名称。我已经创建了一个可以在“tracked_by”id之后抓取名字的选择器。但是,我的意图是让脚本进行解析,直到找到“buzz_off”标识。元件在其内的名称是: html = ''' <div class="list"> <a id="allow" name="allow"></a> <h4 class="c