div#network-register需要使用類reg-success-notification將其內容替換爲新的div。 div內容刷新,但新內容不顯示或加載。JQuery Div不會刷新新內容
$('#network-register').html('<div class="reg-success-notification"><p>Your account has been successfully created. You will be logged in within 5 seconds.</p></div>').fadeIn(1000);
}
I found the issue was due to `"display: none"` in the CSS code of the div's class.
CSS Code
div.reg-success-notification {
display:none
...more rules...
}
什麼是那'}'的作用 「REG-成功通知」 CSS?你可以在http://jsfiddle.net上提供演示嗎? – undefined
什麼是reg-success-notification css? – user10
1.你在使用這個代碼文件ready()/ onload 2.「reg-success-notification」爲這個類定義的css –