English 中文(简体)
A. 改变姓名
原标题:Change name of a html class

我使用一个网站,该网站显示信息一无用,因此试图将其中一些信息与Stylish一起藏匿,这是用于插入习俗中心。

我将尽力作出更好的解释。

<div class="splitscreenleft"> <div id="toplevel"

<div class="splitscreenleft"> <div id="coursesection"

我想掩盖其中之一。 这两种情况都是一样的。 因此,唯一的区别是下面的四舍五入。

I must somehow hide one of the two classes based on the name of the div below it i think. Any solutions to this problem?

问题回答

你们应该能够通过安全局或 Java本做到这一点。

也许甚至不需要寻找孩子。 也许,你只能看一看一看一看一看一看一看一看一看,一看一面。 通过中央支助事务进行,使用第一种类型的甄选人——

<代码>div.split Screenleft:first-of-type{显示:0;}

To do this via JavaScript, you can find the parent object and then hide it: document.getElementById("toplevel").parentNode.style.display = none ;

你们也应该能够这样做:

<代码>$(>split Screenleft:has(#toplevel)”hide()。

如果你能与共同提交文件(在神学院受审)接触到酒吧,你可以总是说。

$( #topLevel ).parent().hide();

下面的法典可以改变你以风格界定的类别。

document.getElementById("testPara").className = "yourclass";




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签