Jump to content
php.lv forumi

Recommended Posts

Posted

Labvakar!

 

Gribēju pajautāt vienu vienkāršu lietiņu un kuru diemžēl man nav atbildes :(

 

Ir pavisam vienkārš html fails, kurā ir bilde, kas ielikta iekš div taga, un tam tagam uzlikts stilā border 1px

 

Ja skatamies to failu caur firefox vai jaunāku exploreri, tad viss ok, bet ja skatamies 6 eksplorerī, tad starp bildi un apakšējo līniju veidojas pāris pikseli liels tukšums...

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #999;
margin: 0px;
padding: 0px;
}
#bilde {
border: 1px solid #FF3;
width: 373px;
}


-->
</style>
</head>

<body>


<div id="bilde">
       <a href="132"><img src="boss.jpg" width="373" height="310" alt="" border="0"/></a>
</div>



</body>
</html>

 

bilde.jpg

Posted

tas ir no new line starp </a> un </div>

<div id="bilde"><a href="132"><img src="boss.jpg" width="373" height="310" alt="" border="0"/></a></div>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...