<!DOCTYPE html><html>?<head>? <title> new document </title> ?? <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> ??? <style>? div{border:3px solid green;}? </style>? <script type="text/javascript">?c=document.getElementById('ok');c.style.borderBottom="1px solid red";? </script>??</head>??<body>?<div id="ok"> 111111</div>?</body></html>w3c里說可以這么用啊,為啥不行?
關(guān)于dom border的某一邊的問題。。。
wyx0k
2016-05-15 22:25:58