English 中文(简体)
iv
原标题:Aligning text inside a div

在以下法典中:

 var panel=<div name="panel" id="panel" style="display:inline;position: absolute; margin-left: auto;margin-right:auto;left: 0;right: 0;width:350px;height: 100px;filter:alpha(opacity=50);">testfield1</div>  ;
  panel = panel +  &nbsp&nbsp<div id ="name" style="display:inline;position: absolute; margin-left: auto;margin-right:auto;left: 350px;right: 0;width:750px;height: 100%;border-color:black;">
        panel = panel +  This is a test</div>

“试验”案文出现在干线底部,而“试验区1”则出现在中心。 如何使这两种案文相互一致?

感谢。

最佳回答

这是无法读的。

几个要点来自我所看到的情况

利用StingBuilder语,而不是征服所有这些人

System.Text.StringBuilder sb = new System.Text.StringBuilder()

sb.Append(@"<div id=""panel"">");

...

string panel = sb.ToString();

我不认为,你需要把名词添加到你身上,否则通常就足够了。

将风格抹去成一个精彩的风格(cs)并清除所有不必要的非封闭空间

在你们的心中,你想要像你这样的东西。

div#panel
{
    display: inline;
    position: absolute;
    ...
}

    div#panel #name
    {
        display: inline;
        position: absolute;
    }

此外,还结合了你可以做的风格,例如,可以重新撰写上述文字。

div#panel, div#panel #name
{
    display: inline;
    position: absolute;
    ...
}

然后,大家会帮助你解救你们的 c。

问题回答

暂无回答




相关问题
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!

热门标签