1. Text around the image If we use the normal one, for example: Copy code The code is as follows:<TABLE cellpadding="15" width="200"> <TR> <TD bgcolor="#EEEEFF"><IMG src="test.gif" hight=60>Here is the normal one. Among domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by programming enthusiasts. </TD> </TR> </TABLE> In such a sentence, if the image is taller than the text, there will be a blank space above the text. The page performance is very bad. How to solve it? Please look at this code: Copy code The code is as follows:<TABLE cellpadding="15" width="200"> <TR> <TD bgcolor="#EEEEFF"><IMG src="test.gif" hspace="1" align="LEFT" hight=60>Here is a wraparound layout. Among domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by programming enthusiasts. </TD> </TR> </TABLE> The problem can be solved by adding this attribute to the img element: align="center". Simple, right? As for hspace, it defines the width of the image and surrounding elements. It does not matter whether it is wrapped or not. How was this made? Let’s take a look at this code first: Copy code The code is as follows:<table align=left cellspacing=0 cellpadding=0 width=200 border=1> <tr> <td><table align=left cellspacing=0 cellpadding=0><font color=red size="5"><b>Among </b></font> </table> domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by program enthusiasts. (End)</td></tr> </table> How to achieve such an effect? Copy code The code is as follows:<table align=left cellspacing=0 cellpadding=0 width=200 border=1> <tr> <td><table align=left cellspacing=0 cellpadding=0><font color=red size="5"><b>在</b></font> </table>Among the domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by programming enthusiasts. (End)</td></tr> </table> This code snippet explains it. You, as a smart person, will know it at a glance. Just put the words you want to enlarge in this table. But now what if I want the text to have a background color? Ha, you are so smart. Add the bgcolor attribute to the table, like this: Copy code The code is as follows:<table align=left cellspacing=0 cellpadding=0 width=200 border=1> <tr> <td><table align=left cellspacing=0 cellpadding=0 bgcolor=#C0C0C0><font color=red size="5"><b>Among </b></font></table> domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by program enthusiasts. (End)</td></tr></table> But can you come out? No, there is still something to add (remember not to answer so quickly next time :), like this: Copy code The code is as follows:<table align=left cellspacing=0 cellpadding=0 width=200 border=1> <tr> <td><table align=left cellspacing=0 cellpadding=0 bgcolor=#C0C0C0><td><font color=red size="5"><b>Among </b></font></td></table> domestic VB websites, vbgood is updated daily and has rich information, and is deeply loved by program enthusiasts. (End)</td></tr></table> |
<<: How to solve the margin collapse problem in CSS
MySQL is a relational database management system ...
This article shares the specific code of uniapp t...
Table of contents 1. Basic Concepts ACID 3.AutoCo...
When processing batch updates of certain data, if...
Using DOSBox, you can simulate DOS under Windows ...
1. Server environment configuration: 1. Check dis...
Cleanly uninstall MySQL. Personally tested, this ...
Table of contents 1. List interface display examp...
1. Download the ElasticSearch 6.4.1 installation ...
Table of contents MutationObserver API Features I...
Preface Because this is a distributed file system...
mysql-5.7.9 finally provides shutdown syntax: Pre...
1. Use CSS to draw a small pointed-corner chat di...
Preface I have an old laptop with Win7. In order ...
1. Download the virtual machine version 15.5.1 I ...