Modify the comment box size

Modify the comment box size, its width is set to the same text and blog:

 First click into a blog post, press F12, find the comment box component code corresponding source code on the page, as shown below, the name of the comment box is tbCommentBody.



Component code corresponding to the comment box


 Then drag the comment box to the size you want, as shown below, you can see at this time the code changes, resulting in a width , height attribute and corresponding value, I have here is 839px and 91px.


We need the width and height values


 The final step, click [Management] to open the blog garden background, click [setup], add the following line of code can be stored in the [Page] in custom CSS code:

#tbCommentBody {width:839px;height:91px;resize:none;!important}

 among them,

  • tbCommentBody comment box is the component name;
  • width, height respectively, the comment box width and height;
  • used to resize = none comment block size is fixed;
  • ! This indicates that important to set the highest priority.

Guess you like

Origin www.cnblogs.com/windsing/p/12350201.html