문제

Using this plugin to generate a message box. I have the problem with this css :

#modal{
visibility:hidden;
width:360px;
height:169px;
padding:8px;

.......
}

It worked well if I create a static div with #modal but when I create a dynamic div #modal + ID then the style does not work.

how to create a dynamic css.

도움이 되었습니까?

해결책

You can Change the css to class and add that class to any no of div. css will be changed as follows

.modal{
visibility:hidden;
width:360px;
height:169px;
padding:8px;

.......
}

Add the class name in the div

<div class="modal">

다른 팁

If you are changing the div I'd then you have to change the CSS selector too to #modal + I'd, also for example #modal1

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top