English 中文(简体)
如何打造一个带有表面图像的圆片的圆板?
原标题:What s the proper workaround for creating a div with a table in it with images in the table?

我希望:

<div id="display">
  <div id="slideshow1">
     <table cellspacing=0><tr><td style="height:200px;padding:0;vertical-align:middle">
       <img ... />
     </td></tr></table>  
  </div> 
</div>

而用的是:

var thelistt = localStorage.getItem( thelist )
   var trt = document.createElement("div");
    trt.setAttribute("Id","slideshow1");
    trt.className="pics";  

    $( #display ).append(trt);  

var tble = document.createElement("table");
    tble.setAttribute("cellspacing","0");
    tble.innerHTML = "<tr><td style= height:200px;padding:0;vertical-align:middle >";
    $( #slideshow1 ).append(tble);
    trt.innerHTML += thelistt;

这造成了四分五裂,然后是一张桌子,紧跟桌边,然后是影像,然后是四舍五入。

如果有人看一看我目前的法典,相信你会获得一个好的东西,那么,我们就没有这样做了。

rel=“nofollow noreferer”>http://hem.bredband.net/noor/bildspelet3.html

(需要点击ed,把2个或2个以上的圆顶直接放在图像上)

问题回答

该法典:

var $display = jQuery( <div> ).attr( id ,  display );
var $slideshow1 = jQuery( <div> ).attr( id , slideshow1 );
var $td = jQuery( <td> ).attr( style , height:200px;padding:0;vertical-align:middle );

var $tr = jQuery( <tr> );
var $table = jQuery( <table> ).attr( cellspacing ,  0 ).append($tr.append($td));

jQuery( body ).append($display.append($slideshow1.append($table)));

创建这一机构:

<div id="display">
  <div id="slideshow1">
    <table cellspacing="0">
      <tbody>
        <tr>
          <td style="height: 200px; padding: 0pt; vertical-align: middle;">
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>

添加一种形象,你可以采用类似的模式。

更有说服力的方法可以加以安排,也许可以归纳为一份声明,但正在澄清:

HTH





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签