Home > Web Front-end > HTML Tutorial > Please advise on rewriting innerHTML content code_html/css_WEB-ITnose

Please advise on rewriting innerHTML content code_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:57
Original
1275 people have browsed it


;/p>
                                                                           


                                                      






.....


.....


Because I want the ********** content to be the same as the original server_right content (the first line font-size: 18px; color:#0FF;, the second line is blank, and the third line is "font-size:12px; color:#000). I don’t know how to write the code. Could you please give me some clear guidance? Thank you!




Reply to the discussion (solution)

Directly assign html document.getElementById("content").innerHTML='

    AAA

 

BBB

';

Why not use jquery?

//Set $("#dfsafdsa").val(value)
//Get the value $("#dafljk").val()

jq works well Realize

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template