IE8 the 2 buttons in the div below show only one

Source: Internet
Author: User

IE8 the 2 buttons in the next Div only show one, code such as the following:

<div id= "AdviceType" style= "Display:none;" >    <select name= "Advicetypeone" id= "Advicetypeone" class= " Shortselect ">    <option value="-1 ">--Please select--</option><c:foreach var=" Bean "items=" ${listone} " ><option value= "${bean.id}" >${bean.des}</option></c:foreach></select><select name= "Advicetypetwo" id= "Advicetypetwo" class= "Shortselect" ><option value= "-1" >--Please select--</option></ Select><input type= "hidden" id= "Advicemsglogid" ><input id= "Saveadvicetype" class= "retransmission" type= "Button" value= "Save"/><input id= "Hideadvicetype" class= "retransmission" type= "button" value= "Hide"/>    < /div>
, only the Save button is displayed and the Hide button is not displayed. The DOM shows no problem, but it is not displayed.

There is no way, intended to "hide" the use of the button, directly with the label, the result button can be displayed,


Finally the code is for example the following:

<div id= "AdviceType" style= "display:none; ">    <select name=" Advicetypeone "id=" Advicetypeone "class=" Shortselect ">    <option value="-1 "> --Please select--</option><c:foreach var= "Bean" items= "${listone}" ><option value= "${bean.id}" >${bean.des} </option></c:foreach></select><select name= "Advicetypetwo" id= "AdviceTypeTwo" class= " Shortselect "><option value="-1 ">--Please select--</option></select><input type=" hidden "id=" Advicemsglogid "><input id=" Saveadvicetype "class=" retransmission "type=" button "value=" Save "/><input id=" Hideadvicetype "class=" retransmission "type=" button value= "Hide"/><label>&nbsp;</label>    </div>

Adds a line of code. Detailed reasons to be studied.

Show the code for the DIV:

$ (". Left"). Live ("Click", Function () {var $this = $ (this); var width = $this. width (); $ ("#adviceType"). CSS ("Top", event.clienty+ $this. scrolltop ()). CSS ("left", event.clientx+ $this. ScrollLeft ()). CSS ("position", "absolute"). Show ( ). Height (+) width (600);//change display position with mouse click})


IE under the Ajax does not work, other browsers can, debugging after the discovery of a comma, ie check is very strict.




IE8 the 2 buttons in the div below show only one

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.