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)?


You can actually view outstanding row locks in transactions with SHOW ENGINE INNODB STATUS if you enable the lock monitor, but you'll need to parse the results to get anything usable. These locks are usually only momentary. They disappear after the transaction is committed.

If you're trying to serialize your queries, you can implement table locking (for a whole table), or (with InnoDB) row level locking using SELECT ... LOCK IN SHARE MODE (or you can let MySQL do this for you with the SERIALIZABLE isolation mode).

You can even come up with your own locking scheme using values stored in the database, which I've seen many implement.

The default innodb_lock_wait_timeout is 50 seconds and applies to all row level locks in InnoDB. There is no lock wait timeout for table locks.

If you're more specific, such as providing an actual scenario and the desired behavior, we'll be able to answer in more detail.

4

2 に答える 2

0

いいえ、埋め込みページを介して埋め込みページのスタイルを設定することはできません。可能であれば、それは合法ではありません。原則として、許可なくそのような合法的な埋め込みを行うこともありません。

于 2012-07-26T03:31:05.617 に答える
0

属性セレクターを使用できるはずです。

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