0

I got the page (can control the content) which can only run html (not javascript) like this:

<style>
h1 { color:red }
</style>
<object data=something.html ></object>

in something.html, it contains:

<h1>
simple example
</h1>

and the css not work in this case, I expect the simple example to be red, it still black. Is there possibly any way that my css affect the rendered html source? (can replace object tag with any tag)

Tsu
  • 15
  • 5

2 Answers2

0

Try adding

<style>
h1 { color:red }
</style>

in something.html

Hope it is the way you looking for .

Pushprajsinh Chudasama
  • 7,772
  • 4
  • 20
  • 43
0

You can try this.

<style>
h1 { color:red !important }
</style>
<h1>
simple example
</h1>
Pushprajsinh Chudasama
  • 7,772
  • 4
  • 20
  • 43