English 中文(简体)
评注框
原标题:Styling a Comment Box
  • 时间:2010-03-31 00:33:48
  •  标签:
  • css

下面的法典有一段文字,即“补充评论:”投入领域和呈文纽。 赋予它们以下特征的最佳途径是什么?

提前感谢,

John

特征:

- “补充评论:”在以下东西底部以下30个px:<div类别=“替代标题”> 提交费用。 如无评论,则“

- 提出“补充意见:”在有一评论或有两点或多点评论的情况下,在前述评论的底线以下为30皮克。

- 在“补充评论”案文后面总是有30页。

- 提交书的顶端总是在投入领域底层的30皮克。

法典:

 <label class="addacomment" for="title">Add a comment:</label>
        <input class="commentsubfield" name="title" type="title" id="title" maxlength="1000">  

        <div class="commentsubbutton"><input name="submit" type="submit" value="Submit"></div>

陪同我所尝试的科索沃安全局(但是它没有工作):

.commentsubbutton
    {
    margin: 20px 0 30px 30px;
    text-align: left;
    margin-bottom:3px;
    padding:0px;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 11px;
    color:#000000;
    }       

.addacomment
    {
    margin: 30px 0 30px 30px;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 12px;
    color:#000000;
    }       

.commentsubfield { margin: 30px 0 30px 30px; width: 390px; height: 90px; border: 1px solid #999999; padding: 5px; } 
问题回答

添加<代码>:24;至您的不同类别要素。 例如,“标签”要素是缺省“内线”要素,这意味着上下层/下层的利润根本就赢得了工作。





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

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

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 ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签