|
I have given a table background image using css background-image property. The cells are given opacity settings so that the image is shown through the cells. In Firefox it works perfectly but in IE all the cells(TDs) are showing the background image. ...
Started by Shivanand on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this,
background: url("img url") transparent no-repeat;
Could you wrap the... .
Adding something like
td { background: transparent; }
seems to fix the problem in IE .
All the individual cells seem to inherit the background-image styling from the table .
|
|
Whats the shortest way to assert that an attribute is applied to method in c#?
I'm using nunit-2.5
:)
Started by TheDeeno on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want.
MethodInfo.GetCustomAttributes(attributeType, true).Any()
If the attribute is applied, then it will return true.
|
|
<a id="test" class="target1 target2">test</test>
How to know whether $("#test") has applied .target2 or not?
Started by Shore on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
}
Do you really want to know or do you want to do something if it has?
In the latter case, this will do nicely:
$("#test.target2").doWhateverYouWantToDo(...); .
Use jQuery hasClass
if( $("#test").hasClass("target2") ) { // yep, it has.. .
|
Ask your Facebook Friends
|
When creating a patch with the "patch" tool or with the built in "patch"-functionality in svn and then applying it to a source tree, is there any way to easily step back from the applied patch to the previous version?
Started by thr on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Apply.
Svn revert? You can revert to the previous revision (before the patch was applied).
|
|
What techniques can be applied effectively to improve the performance of SQL queries? Are there any general rules that apply?
Started by Niyaz on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
In Oracle you can look at the explain plan to compare variations on your query
Use primary keys Avoid select * Be as specific as you can when building your conditional statements De-normalisation... .
I think using SQL query analyzer would be a good start .
|
|
Public class SomeAttr: Attribute { void Method() { //here I want to know the type this instance of attribute is applied to } }
Thanks!!
Started by Dmitry on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you mean some of the attributes....
If you are talking AOP (PostSharp etc), then all bets are off .
You'll need to include some typeof(Foo) in the attribute constructor / properties .
In regular .NET, it doesn't and can't (unless you tell it manually); sorry .
|
|
We have an ASP.net 2.0 web application which is using themes set on the application level using web.config. The theme gets applied correctly for any web page that inherits from Page. The problem is that theme doesn't get applied to our base page which...
Started by Mohamed Osman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Public class MyBasePage : System.Web.UI.Page { protected override....
Make sure you are using the base keyword to call the appropriate overridden base class members from within your derived class .
You might find your answer here in a very similar question .
|
|
It's not quite as simple as the title says but I hope you understand.
Consider this scenario:
Class MyClass Property SubProp1 End Property -TypeEditor(whatever)- Property SubProp2 End Property End Class Class MyButton Inherits Button -MyCustomAttribute...
Started by Jules on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The attribute added to the MC property are not "added"... .
If i look at the attributes applied to MyClass, though, it will only return the attributes applied directly to MyClass, and not the extra attribute applied to the property MC.
|
|
I am new to WPF and in every tutorial i read they eiher have a [System.STAThread()] attribute applied to their main.. or asks the reader to do that..
i was just wondering...
is it "required" ?
and if it is.. why is that ?
thx alot
Started by Madi D. on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The STAThreadAttribute is applied, it changes the apartment state of the current thread to be single threaded.
|
|
I have Flex Builder 3 installed on two Windows machines and the same project on both of them. On one computer, the CSS styles I defined are shown in design view; on the other computer they are not applied. Is there any reason why it might not work on ...
Started by Matt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Could that be it?
Sometimes when I first switch to design view the CSS is not applied until I hit.
|