0

Is it possible to use css on a data attribute of an object tab? I have code like this (I know I left out attributes like type):

<object data="www.example.com">

I want to know if it is possible to style "www.example.com" within my own site using css. Because the site I am trying to style is a mobile site, it looks different in every version of any browser. I want to style it so it looks the same across all browsers. Is there a ramification legally to doing this to another site (not owned by me)?


In Python 2, input takes a string from the user, and evaluates it. So when you enter "S", it tries to evaluate it, looking for the name "S", which doesn't exist.

Use raw_input instead of input.

Yes, this was crazy. It's fixed in Python 3, where raw_input is now named input.

4

2 回答 2

0

You should be able to use the attribute selector.

object[data="www.example.com"]{
    /* styles */
}
于 2012-07-26T01:41:20.480 回答
0

不,您不能通过嵌入页面设置嵌入页面的样式。如果可能,那将是不合法的。作为一项规则,未经许可的嵌入也不是合法的。

于 2012-07-26T03:31:05.617 回答