Bug Tracker

Ticket #4146: test-4146.html

File test-4146.html, 659 bytes (added by dmethvin, 14 years ago)

bizarro buttons width

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html> 
3<head> 
4<title>Test</title> 
5<style type="text/css">
6
7</style>
8<script type="text/javascript" src="jquery-1.3.1.js"></script> 
9<script type="text/javascript">
10$(function(){
11
12
13$("#stat1").text($("#x1").width());
14
15$("#x1").width($("#x1").width())
16
17$("#stat2").text($("button").width());
18
19});
20</script> 
21</head> 
22<body> 
23
24<button id="x1" style="width: 80px; padding:10px; border: 5px solid #800">test</button>
25<button id="x2" style="width: 80px; padding:10px; border: 5px solid #800">test</button>
26
27<div id="stat1"></div>
28<div id="stat2"></div>
29
30</body> 
31</html>